/* ==========================================================================
   老马资料整合站 - 前台样式
   ========================================================================== */

:root {
  --container: 1600px;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --surface-3: #f2f5fa;
  --text: #1f2430;
  --text-2: #4b5563;
  --muted: #8a94a6;
  --line: #e9edf3;
  --line-strong: #dde3ec;
  --dark: #33475b;
  --dark-2: #26384a;
  --accent: #2f6fed;
  --accent-soft: #eaf1ff;
  --orange: #ffb020;
  --red: #e5484d;
  --green: #16a34a;
  --violet: #7c3aed;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 10px 30px rgba(16, 38, 64, 0.08);
  --shadow-hover: 0 16px 36px rgba(16, 38, 64, 0.14);
  --header-h: 66px;
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC",
    system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

html[data-theme="dark"] {
  --bg: #0d1219;
  --surface: #151d27;
  --surface-2: #1a2431;
  --surface-3: #1f2a39;
  --text: #e7edf5;
  --text-2: #c2cbd8;
  --muted: #8b9ab0;
  --line: #253142;
  --line-strong: #2f3d51;
  --dark: #1b2837;
  --dark-2: #223246;
  --accent: #5b8dff;
  --accent-soft: #1b2a45;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 16px 36px rgba(0, 0, 0, 0.45);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--dark);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12.5px;
}

.muted-text {
  color: var(--muted);
  font-size: 12.5px;
}

.link {
  color: var(--accent);
  font-weight: 600;
}

.link:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   按钮
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease,
    transform 0.16s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--dark);
  color: #fff;
}

.btn-primary:hover {
  background: var(--dark-2);
}

.btn-dark {
  background: var(--dark);
  color: #fff;
}

.btn-dark:hover {
  background: var(--dark-2);
}

.btn-vip {
  background: linear-gradient(135deg, #f4b740, #f08c1a);
  color: #fff;
  box-shadow: 0 8px 20px rgba(240, 140, 26, 0.28);
}

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

.btn-outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--dark);
  color: var(--dark);
}

.btn-light {
  background: #fff;
  color: #4b3bd4;
}

.btn-light:hover {
  background: #f3f0ff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.24);
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-sm {
  height: 34px;
  padding: 0 14px;
  font-size: 13px;
  border-radius: 6px;
}

/* --------------------------------------------------------------------------
   徽标 / 状态
   -------------------------------------------------------------------------- */

.kind-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 18px;
  color: #fff;
  white-space: nowrap;
}

.kind-free {
  background: linear-gradient(135deg, #ffc247, #ff9f1a);
}

.kind-paid {
  background: linear-gradient(135deg, #5b8dff, #2f6fed);
}

.kind-vip {
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
}

.status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--surface-3);
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
}

.status-ok {
  background: #e7f7ee;
  color: #15803d;
}

.status-warn {
  background: #fff4e0;
  color: #b45309;
}

.status-danger {
  background: #fdecec;
  color: #b91c1c;
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 5px;
  background: var(--surface-3);
  color: var(--text-2);
  font-size: 13px;
  transition: background 0.15s ease, color 0.15s ease;
}

.chip:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.chip.active {
  background: var(--dark);
  color: #fff;
}

/* --------------------------------------------------------------------------
   顶部导航
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 30px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: none;
}

.brand-star {
  width: 34px;
  height: 34px;
}

.brand-name {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: var(--text);
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 100%;
}

.nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 100%;
  padding: 0 14px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  transition: color 0.15s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

.nav-link .caret {
  opacity: 0.55;
  transition: transform 0.2s ease;
}

.nav-item:hover .caret {
  transform: rotate(180deg);
}

.nav-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 196px;
  padding: 10px 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 18px 36px rgba(16, 38, 64, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
  z-index: 70;
}

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

.nav-menu a {
  display: block;
  padding: 8px 20px;
  font-size: 13.5px;
  color: var(--text-2);
  white-space: nowrap;
}

.nav-menu a:hover {
  background: var(--surface-2);
  color: var(--accent);
}

.nav-menu-all {
  margin-top: 6px;
  border-top: 1px solid var(--line);
  color: var(--accent) !important;
  font-weight: 600;
  padding-top: 10px;
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--surface-3);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

.login-pill:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.account-pill span {
  max-width: 92px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--text-2);
  transition: background 0.15s ease, color 0.15s ease;
}

.icon-btn:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.nav-toggle {
  display: inline-flex;
}

.search-panel {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 16px 24px;
}

.search-panel[hidden] {
  display: none;
}

.search-panel-form {
  display: flex;
  gap: 10px;
  max-width: 960px;
  margin: 0 auto;
}

.search-panel-form input {
  flex: 1;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface-2);
  outline: none;
}

.search-panel-form input:focus {
  border-color: var(--accent);
}

.search-panel-form button {
  width: 110px;
  border: 0;
  border-radius: 8px;
  background: var(--dark);
  color: #fff;
  font-weight: 700;
}

/* 移动端抽屉 */
.mobile-drawer {
  position: fixed;
  inset: 0 30% 0 0;
  max-width: 330px;
  z-index: 200;
  background: var(--surface);
  box-shadow: 12px 0 40px rgba(0, 0, 0, 0.25);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobile-drawer[hidden] {
  display: none;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
}

.drawer-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-weight: 600;
}

.drawer-nav a span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.drawer-theme {
  margin-top: auto;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 13.5px;
}

/* 提示条 */
.flash-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
}

.flash {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid;
  font-size: 13.5px;
}

.flash-success {
  background: #eefaf3;
  border-color: #bfe9d0;
  color: #157347;
}

.flash-error {
  background: #fdf0f0;
  border-color: #f5c6c8;
  color: #b02a2f;
}

.flash-close {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 18px;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background: #bfe3f4;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 44, 66, 0.1) 0%, rgba(20, 44, 66, 0.02) 45%, rgba(255, 255, 255, 0.06) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 68px;
  text-align: center;
}

.hero h1 {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 0 3px 18px rgba(16, 48, 76, 0.32);
}

.hero-sub {
  margin-top: 10px;
  font-size: 20px;
  font-weight: 700;
  color: #f04b4f;
  letter-spacing: 1px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.hero-search {
  display: flex;
  gap: 8px;
  width: min(1040px, 92%);
  margin: 22px auto 0;
  padding: 7px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(16, 48, 76, 0.22);
  backdrop-filter: blur(6px);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  height: 50px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  font-size: 16px;
  outline: none;
  color: #1f2430;
}

.hero-search input::placeholder {
  color: #9aa4b2;
}

.hero-search button {
  width: 150px;
  height: 50px;
  border: 0;
  border-radius: 8px;
  background: #33475b;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 3px;
}

.hero-search button:hover {
  background: #26384a;
}

/* 首页分类入口 */
.quick-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  margin-top: 28px;
}

.quick-tile {
  position: relative;
  display: block;
  height: 208px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-3);
  border: 1px solid var(--line);
}

.tile-shots {
  position: absolute;
  inset: 0;
  display: block;
}

.tile-shot-main {
  width: 64%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  transform: scale(1.02);
}

.tile-shot-side {
  position: absolute;
  top: 14%;
  right: 4%;
  width: 40%;
  border-radius: 6px;
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 24px rgba(16, 38, 64, 0.22);
}

.tile-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 26, 40, 0) 40%, rgba(14, 26, 40, 0.72) 100%);
}

.tile-label {
  position: absolute;
  left: 18px;
  bottom: 20px;
  z-index: 2;
  color: #fff;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: 1px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.tile-label::after {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  margin-top: 8px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.9);
}

.tile-count {
  position: absolute;
  right: 14px;
  bottom: 16px;
  z-index: 2;
  padding: 3px 10px;
  border-radius: 5px;
  background: rgba(22, 32, 46, 0.72);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* --------------------------------------------------------------------------
   首页区块 / 资源卡片
   -------------------------------------------------------------------------- */

.home-section {
  margin-top: 50px;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 18px;
}

.section-head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.section-bar {
  display: inline-block;
  width: 6px;
  height: 22px;
  border-radius: 3px;
  background: var(--dark);
}

.section-sub {
  color: var(--muted);
  font-size: 12.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-more {
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.section-more:hover {
  color: var(--accent);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
}

.res-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.res-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
}

.res-thumb {
  display: block;
  background: var(--surface-3);
  overflow: hidden;
}

.res-thumb img {
  width: 100%;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.res-card:hover .res-thumb img {
  transform: scale(1.03);
}

.res-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 12px 14px 14px;
}

.res-cat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.dot-website { background: #2f6fed; }
.dot-miniprogram { background: #10b981; }
.dot-game { background: #a855f7; }
.dot-theme { background: #7c3aed; }
.dot-tutorial { background: #f97316; }
.dot-software { background: #0d9488; }

.res-title {
  margin: 6px 0 6px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 45px;
}

.res-title a:hover {
  color: var(--accent);
}

.res-summary {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
}

.res-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

.res-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.res-meta .kind-badge {
  margin-left: auto;
}

/* 深入探索 */
.explore-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  padding: 4px 0;
}

.explore-label {
  font-size: 17px;
  font-weight: 800;
  margin-right: 8px;
}

.explore-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  color: var(--accent);
  font-size: 13.5px;
  background: var(--surface);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.explore-tag:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.explore-all {
  color: var(--muted);
  border-style: dashed;
}

/* VIP 首页推广 */
.vip-promo {
  margin-top: 56px;
  padding: 38px 40px 34px;
  border-radius: 16px;
  background:
    radial-gradient(1200px 300px at 85% -20%, rgba(124, 58, 237, 0.35), transparent 60%),
    linear-gradient(120deg, #243b55, #33475b 55%, #2b3d52);
  color: #fff;
}

.vip-promo-head {
  text-align: center;
}

.vip-promo-head h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 1px;
}

.vip-promo-head p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13.5px;
}

.vip-promo-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 26px;
}

.vip-promo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px 22px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: background 0.18s ease, transform 0.18s ease;
}

.vip-promo-card:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-3px);
}

.vip-promo-card.featured {
  background: rgba(255, 255, 255, 0.96);
  color: #1f2430;
  border-color: transparent;
}

.vip-badge {
  position: absolute;
  top: -10px;
  right: 18px;
  padding: 2px 10px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ffc247, #ff9f1a);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.vip-plan-name {
  font-size: 16px;
  font-weight: 700;
}

.vip-plan-price {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.2;
}

.vip-plan-price i {
  font-style: normal;
  font-size: 18px;
  margin-right: 2px;
}

.vip-plan-origin {
  font-size: 12px;
  opacity: 0.6;
  text-decoration: line-through;
}

.vip-plan-link {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #f4b740;
}

.vip-promo-card.featured .vip-plan-link {
  color: #d97706;
}

/* --------------------------------------------------------------------------
   分类列表页
   -------------------------------------------------------------------------- */

.page-hero {
  position: relative;
  background: #33475b;
  color: #fff;
  text-align: center;
  padding: 48px 0 88px;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 200px at 12% 0%, rgba(255, 255, 255, 0.12), transparent 70%),
    radial-gradient(680px 240px at 92% 100%, rgba(90, 140, 255, 0.18), transparent 70%);
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 3px;
}

.page-hero p {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13.5px;
}

.filter-panel {
  position: relative;
  z-index: 3;
  margin-top: -58px;
  padding: 16px 26px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.filter-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 8px 0;
  font-size: 13.5px;
}

.filter-row + .filter-row {
  border-top: 1px dashed var(--line);
}

.filter-label {
  flex: none;
  width: 64px;
  color: var(--muted);
  line-height: 28px;
}

.filter-values {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}

.filter-row-sort {
  align-items: center;
}

.filter-count {
  margin-left: auto;
  color: var(--muted);
  font-size: 12.5px;
  white-space: nowrap;
}

.filter-count strong {
  color: var(--accent);
}

.list-section {
  padding: 26px 24px 20px;
}

.inline-search {
  display: flex;
  gap: 10px;
  margin-bottom: 6px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}

.inline-search input {
  flex: 1;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface-2);
  outline: none;
}

.inline-search button {
  padding: 0 20px;
  border: 0;
  border-radius: 7px;
  background: var(--dark);
  color: #fff;
  font-weight: 700;
}

/* 广告条 */
.ad-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
  padding: 16px 24px;
  border-radius: 10px;
  background:
    radial-gradient(600px 160px at 85% 0%, rgba(124, 58, 237, 0.4), transparent 70%),
    linear-gradient(110deg, #1f3a5f, #2f4f7a 55%, #24365a);
  color: #fff;
  overflow: hidden;
}

.ad-flag {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 1px;
}

.ad-left {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.ad-logo {
  flex: none;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #ffd479, #ff9f1a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ad-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ad-copy strong {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1px;
}

.ad-copy small {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

.ad-action {
  margin-left: auto;
  flex: none;
  padding: 8px 22px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 13px;
  font-weight: 600;
}

.ad-banner:hover .ad-action {
  background: rgba(255, 255, 255, 0.24);
}

/* 分页 */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 34px 0 16px;
}

.page-num,
.page-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--surface-3);
  color: var(--text-2);
  font-size: 13.5px;
}

.page-num:hover,
.page-arrow:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.page-num.active {
  background: var(--dark);
  color: #fff;
  font-weight: 700;
}

.page-arrow.disabled {
  opacity: 0.4;
}

.page-ellipsis {
  color: var(--muted);
  padding: 0 2px;
}

.empty-state {
  padding: 70px 20px;
  text-align: center;
}

.empty-icon {
  font-size: 40px;
  margin-bottom: 10px;
}

.empty-state h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--muted);
  margin-bottom: 20px;
}

.empty-state .btn {
  margin: 0 6px;
}

.empty-text {
  padding: 26px 18px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   标签云
   -------------------------------------------------------------------------- */

.tag-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.tag-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.tag-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.tag-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 4px;
  background: #33475b;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.tag-count {
  color: var(--muted);
  font-size: 12.5px;
}

.tag-desc {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   资源详情
   -------------------------------------------------------------------------- */

.detail-container {
  padding-top: 18px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 0 16px;
  color: var(--muted);
  font-size: 12.5px;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb .current {
  color: var(--text-2);
  max-width: 70%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 26px;
  align-items: start;
}

.detail-main {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px 30px 30px;
  min-width: 0;
}

.detail-title {
  font-size: 27px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0.3px;
}

.detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
}

.meta-cat {
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 10px;
  border-radius: 4px;
  font-weight: 600;
}

.detail-cover {
  margin: 20px 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.detail-cover img {
  width: 100%;
  max-height: 460px;
  aspect-ratio: 8 / 5;
  object-fit: cover;
}

.detail-summary {
  margin: 18px 0 20px;
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
  background: var(--surface-2);
  border-radius: 0 8px 8px 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.8;
}

.detail-body {
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 2.1;
  word-break: break-word;
}

.detail-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.detail-tags-label {
  color: var(--muted);
  font-size: 13px;
  margin-right: 4px;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 14px;
  background: var(--surface-3);
  color: var(--text-2);
  font-size: 12.5px;
}

.tag-pill:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.detail-aside {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.download-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.download-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.download-head strong {
  font-size: 17px;
  font-weight: 800;
}

.download-kind {
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--surface-3);
  color: var(--muted);
  font-size: 11.5px;
}

.download-price {
  margin: -4px 0 12px;
  font-size: 13px;
  color: var(--muted);
}

.download-price strong {
  font-size: 22px;
  color: #f08c1a;
  font-weight: 800;
}

.download-price span {
  font-size: 12px;
}

.download-card .btn {
  height: 48px;
  font-size: 16px;
}

.download-tip {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.download-facts {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.download-facts li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  font-size: 13px;
}

.download-facts span {
  color: var(--muted);
}

.download-facts em {
  font-style: normal;
  color: var(--text);
  font-weight: 600;
}

.download-facts a {
  color: var(--accent);
}

.download-note {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 6px;
  background: #fff8e8;
  color: #92600a;
  font-size: 12px;
  line-height: 1.7;
}

html[data-theme="dark"] .download-note {
  background: #2a2213;
  color: #e2b866;
}

.aside-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 6px;
}

.aside-links a {
  color: var(--muted);
  font-size: 12.5px;
}

.aside-links a:hover {
  color: var(--accent);
}

.related-section {
  margin-top: 44px;
}

/* --------------------------------------------------------------------------
   会员 / 支付
   -------------------------------------------------------------------------- */

.vip-hero {
  padding-bottom: 104px;
}

.vip-status {
  margin-top: 14px !important;
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 13.5px !important;
}

.vip-status a {
  color: #ffd479;
  text-decoration: underline;
}

.vip-plans {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: -66px;
}

.plan-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 26px 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plan-card.featured {
  border: 2px solid #f0a91d;
  box-shadow: 0 18px 44px rgba(240, 169, 29, 0.18);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 24px;
  padding: 3px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffc247, #ff9f1a);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.plan-card h2 {
  font-size: 18px;
  font-weight: 700;
}

.plan-price {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
}

.plan-price i {
  font-style: normal;
  font-size: 20px;
  margin-right: 2px;
}

.plan-price span {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 6px;
}

.plan-origin {
  color: var(--muted);
  font-size: 12.5px;
  text-decoration: line-through;
}

.plan-perks {
  margin: 12px 0 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.plan-perks li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-2);
}

.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e7f7ee;
  color: #15803d;
  font-size: 11px;
  font-weight: 700;
  flex: none;
}

.plan-note {
  margin-top: 10px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.vip-compare,
.vip-orders,
.faq-section {
  margin-top: 46px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.data-table th {
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 600;
  font-size: 12.5px;
  white-space: nowrap;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover td {
  background: var(--surface-2);
}

.compare-table td:not(:first-child),
.compare-table th:not(:first-child) {
  text-align: center;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 20px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 14.5px;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--muted);
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
}

.faq-item code {
  background: var(--surface-3);
  padding: 1px 6px;
  border-radius: 4px;
}

/* 收银台 */
.pay-container {
  padding-top: 36px;
}

.pay-card {
  max-width: 860px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.pay-head {
  padding: 26px 32px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.pay-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  background: var(--dark);
  color: #fff;
  font-size: 12px;
}

.pay-head h1 {
  margin-top: 10px;
  font-size: 24px;
  font-weight: 800;
}

.pay-head p {
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 4px;
}

.pay-body {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 34px;
  padding: 30px 32px;
  align-items: center;
}

.pay-qr {
  text-align: center;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 3px;
  width: 200px;
  height: 200px;
  margin: 0 auto;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
}

.qr-grid span {
  background: transparent;
  border-radius: 1px;
}

.qr-grid span.on {
  background: #1f2430;
}

.pay-qr p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12.5px;
}

.pay-detail h2 {
  font-size: 18px;
  font-weight: 700;
}

.pay-amount {
  margin: 6px 0 16px;
  font-size: 42px;
  font-weight: 800;
  color: var(--text);
}

.pay-amount i {
  font-style: normal;
  font-size: 22px;
  margin-right: 2px;
}

.pay-facts {
  margin-bottom: 20px;
}

.pay-facts li {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
}

.pay-facts span {
  color: var(--muted);
}

.pay-cancel {
  display: block;
  margin-top: 12px;
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
}

.pay-note {
  padding: 16px 32px 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   登录 / 注册
   -------------------------------------------------------------------------- */

.auth-page {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 20px 80px;
  background:
    radial-gradient(760px 380px at 15% 0%, rgba(47, 111, 237, 0.1), transparent 70%),
    radial-gradient(720px 420px at 88% 20%, rgba(124, 58, 237, 0.1), transparent 70%),
    var(--bg);
}

.auth-card {
  width: 100%;
  max-width: 430px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 34px 34px 26px;
  box-shadow: 0 24px 60px rgba(16, 38, 64, 0.12);
}

.auth-card-wide {
  max-width: 470px;
}

.auth-head {
  text-align: center;
  margin-bottom: 22px;
}

.auth-head img {
  margin: 0 auto 10px;
}

.auth-head h1 {
  font-size: 22px;
  font-weight: 800;
}

.auth-head p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field > span {
  font-size: 13px;
  color: var(--text-2);
  font-weight: 600;
}

.field input,
.field select,
.field textarea,
.stack-form input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface-2);
  outline: none;
}

.field textarea {
  height: auto;
  padding: 10px 13px;
  resize: vertical;
  line-height: 1.7;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.stack-form input:focus {
  border-color: var(--accent);
  background: var(--surface);
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
}

.auth-row-end {
  justify-content: flex-end;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
  cursor: pointer;
}

.checkbox input {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
}

.agree {
  font-size: 12.5px;
  line-height: 1.7;
}

.agree a {
  color: var(--accent);
}

.auth-form .btn {
  height: 46px;
  font-size: 16px;
  letter-spacing: 4px;
}

.auth-switch {
  margin-top: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.auth-switch a {
  color: var(--accent);
  font-weight: 700;
}

.auth-demo {
  margin-top: 14px;
  padding: 9px 12px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 11.5px;
  text-align: center;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   个人中心
   -------------------------------------------------------------------------- */

.account-wrap {
  padding-top: 28px;
  padding-bottom: 50px;
}

.account-layout {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.account-side {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 16px;
}

.account-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.account-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f7bf0, #7c3aed);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
}

.account-user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.account-user-info strong {
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-user-info span {
  color: var(--muted);
  font-size: 12px;
}

.account-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 0;
}

.account-nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 7px;
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 500;
}

.account-nav a:hover {
  background: var(--surface-2);
  color: var(--accent);
}

.account-nav a.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

.account-logout {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.account-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.account-hello {
  padding: 4px 2px 0;
}

.account-hello h1 {
  font-size: 24px;
  font-weight: 800;
}

.account-hello p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 18px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.stat-label {
  color: var(--muted);
  font-size: 12.5px;
}

.stat-card strong {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.3;
}

.stat-card strong.stat-small {
  font-size: 20px;
}

.stat-card a {
  color: var(--accent);
  font-size: 12px;
}

.account-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.panel-head h2 {
  font-size: 17px;
  font-weight: 800;
}

.stack-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 440px;
}

.plain-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.plain-list li::before {
  content: "·";
  margin-right: 8px;
  color: var(--accent);
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   静态页
   -------------------------------------------------------------------------- */

.static-wrap {
  margin-top: -50px;
  padding-bottom: 60px;
  position: relative;
  z-index: 3;
}

.static-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 34px 40px 40px;
  box-shadow: var(--shadow);
}

.static-card h2 {
  margin: 26px 0 12px;
  font-size: 19px;
  font-weight: 800;
}

.static-card h2:first-child {
  margin-top: 0;
}

.static-card p,
.static-card li {
  color: var(--text-2);
  font-size: 14px;
  line-height: 2;
}

.static-card ul {
  padding-left: 4px;
}

.static-card li::before {
  content: "·";
  margin-right: 8px;
  color: var(--accent);
  font-weight: 800;
}

.static-card a {
  color: var(--accent);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0 8px;
}

.stat-item {
  padding: 16px;
  border-radius: 10px;
  background: var(--surface-2);
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
}

.stat-item span {
  color: var(--muted);
  font-size: 12.5px;
}

.code-block {
  padding: 14px 18px;
  border-radius: 8px;
  background: #1f2937;
  color: #a5f3c4;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 15px;
  letter-spacing: 1px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 10px;
}

.contact-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}

.contact-item h3 {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

.contact-item p {
  margin: 6px 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.contact-item p a {
  color: var(--accent);
}

.contact-item span {
  color: var(--muted);
  font-size: 12px;
}

/* --------------------------------------------------------------------------
   错误页
   -------------------------------------------------------------------------- */

.error-wrap {
  padding: 90px 24px 100px;
}

.error-card {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.error-code {
  font-size: 96px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 4px;
  color: transparent;
  -webkit-text-stroke: 2px var(--line-strong);
}

.error-card h1 {
  margin-top: 12px;
  font-size: 26px;
  font-weight: 800;
}

.error-card p {
  margin-top: 10px;
  color: var(--muted);
}

.error-actions {
  margin-top: 24px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   页脚 / CTA
   -------------------------------------------------------------------------- */

.cta-band {
  margin-top: 60px;
  padding: 46px 0;
  background: linear-gradient(120deg, #5b4bd6 0%, #7a5cf0 52%, #5f5be0 100%);
  color: #fff;
  text-align: center;
}

.cta-inner h2 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 2px;
}

.cta-inner p {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13.5px;
}

.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 22px;
}

.site-footer {
  background: #f7f8fa;
  border-top: 1px solid var(--line);
  padding-top: 44px;
}

html[data-theme="dark"] .site-footer {
  background: #101720;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr;
  gap: 34px;
  padding-bottom: 34px;
}

.footer-brand p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.9;
  max-width: 360px;
}

.footer-contact {
  font-size: 12px !important;
}

.footer-col h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-col a {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 2.2;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-search form {
  display: flex;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  overflow: hidden;
  background: var(--surface);
}

.footer-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0 12px;
  background: transparent;
  outline: none;
  font-size: 13px;
}

.footer-search button {
  width: 44px;
  border: 0;
  background: var(--dark);
  color: #fff;
  font-size: 16px;
}

.footer-badges {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.footer-badges span {
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 12px;
}

/* 右侧悬浮栏 */
.side-rail {
  position: fixed;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: #4a7ef0;
  box-shadow: 0 6px 18px rgba(16, 38, 64, 0.1);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.rail-btn:hover {
  background: var(--accent-soft);
  transform: translateY(-2px);
}

html[data-theme="dark"] .rail-btn {
  color: #7aa2ff;
}

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */

@media (max-width: 1440px) {
  .main-nav .nav-link {
    padding: 0 10px;
    font-size: 15px;
  }

  .brand-name {
    font-size: 19px;
  }

  .quick-tiles {
    gap: 20px;
  }
}

@media (max-width: 1240px) {
  .card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .quick-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tag-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  }

  .footer-col:nth-child(3) {
    display: none;
  }

  .side-rail {
    display: none;
  }
}

@media (max-width: 1080px) {
  .main-nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-inner {
    gap: 16px;
  }

  .detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail-aside {
    position: static;
  }

  .account-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-side {
    position: static;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px 20px;
    align-items: center;
  }

  .account-user {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .account-nav {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 6px 0 0;
    border-top: 1px solid var(--line);
  }

  .account-logout {
    border-top: 0;
    padding-top: 0;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: 380px;
  }

  .hero-inner {
    padding-top: 58px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-sub {
    font-size: 17px;
  }

  .hero-search button {
    width: 110px;
    letter-spacing: 1px;
  }

  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .vip-plans {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 22px;
  }

  .vip-hero {
    padding-bottom: 58px;
  }

  .vip-promo-plans {
    grid-template-columns: minmax(0, 1fr);
  }

  .tag-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .footer-col:nth-child(3) {
    display: block;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .pay-body {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
  }

  .pay-facts li {
    text-align: left;
  }

  .static-card {
    padding: 24px 22px 30px;
  }

  .stat-row,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .container {
    padding: 0 16px;
  }

  .header-actions .login-pill span {
    display: none;
  }

  .login-pill {
    padding: 0 10px;
  }

  .hero h1 {
    font-size: 25px;
    letter-spacing: 1px;
  }

  .hero-sub {
    font-size: 15px;
  }

  .hero-search {
    width: 100%;
    flex-direction: row;
    padding: 7px;
  }

  .hero-search input {
    height: 44px;
  }

  .hero-search button {
    width: 92px;
    height: 44px;
    font-size: 15px;
    letter-spacing: 1px;
  }

  .theme-toggle {
    display: none;
  }

  .brand-name {
    font-size: 18px;
  }

  .header-inner {
    gap: 10px;
  }

  .header-actions {
    gap: 6px;
  }

  .icon-btn {
    width: 34px;
    height: 34px;
  }

  .quick-tiles {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .quick-tile {
    height: 176px;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-head {
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .section-head h2 {
    font-size: 20px;
  }

  .section-sub {
    order: 3;
    width: 100%;
    white-space: normal;
  }

  .filter-panel {
    padding: 12px 16px 8px;
  }

  .filter-row {
    flex-direction: column;
    gap: 6px;
  }

  .filter-label {
    width: auto;
    line-height: 1.4;
  }

  .filter-row-sort {
    align-items: flex-start;
  }

  .filter-count {
    margin-left: 0;
  }

  .detail-main {
    padding: 18px 16px 22px;
  }

  .detail-title {
    font-size: 21px;
  }

  .tag-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }

  .cta-inner h2 {
    font-size: 24px;
  }

  .stat-row,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-side {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-logout {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .res-body {
    padding: 10px 10px 12px;
  }

  .res-title {
    font-size: 13.5px;
    min-height: 40px;
  }

  .res-summary {
    display: none;
  }

  .res-meta {
    gap: 6px;
    font-size: 11px;
  }

  .res-meta .meta-views {
    display: none;
  }

  .auth-card {
    padding: 24px 20px 20px;
  }

  .auth-demo {
    word-break: break-all;
  }

  .stat-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .breadcrumb .current {
    max-width: 100%;
  }

  .ad-copy small {
    display: none;
  }

  .ad-logo {
    font-size: 18px;
  }
}

@media (max-width: 720px) {
  .ad-banner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 14px 16px;
  }

  .ad-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .ad-logo {
    font-size: 16px;
  }

  .ad-copy strong {
    font-size: 13px;
    letter-spacing: 0;
  }

  .ad-copy small {
    display: none;
  }

  .ad-action {
    padding: 6px 14px;
    font-size: 12px;
  }

  .ad-flag {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
