:root {
  --header-height: 76px;
  --page-bg: #f6f6f6;
  --text: #263747;
  --muted: #7b8794;
  --line: #e7ebef;
  --blue: #1d73c9;
  --blue-dark: #344f6a;
  --hero: #3e4a56;
  --hero-deep: #323d48;
  --card: #ffffff;
  --shadow: 0 12px 34px rgba(31, 45, 61, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family:
    "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-height);
  background:
    linear-gradient(135deg, rgba(25, 128, 216, 0.18), rgba(255, 255, 255, 0.94) 38%, rgba(131, 95, 225, 0.18)),
    #fff;
  box-shadow: 0 1px 0 rgba(30, 46, 62, 0.08), 0 10px 30px rgba(41, 74, 112, 0.08);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(1760px, calc(100% - 140px));
  height: 100%;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 172px;
  max-width: 220px;
  padding-right: 24px;
  border-right: 1px solid var(--line);
}

.logo.has-logo-image {
  min-width: 172px;
}

.logo-image-wrap {
  display: flex;
  width: 166px;
  height: 54px;
  align-items: center;
}

.logo-image {
  display: block;
  max-width: 100%;
  max-height: 48px;
  object-fit: contain;
}

.logo-icon {
  position: relative;
  width: 36px;
  height: 30px;
  border-radius: 18px 20px 18px 8px;
  background: linear-gradient(135deg, #12a3d6, #176cc3);
  transform: rotate(-14deg);
}

.logo-icon::before,
.logo-icon::after {
  position: absolute;
  content: "";
  background: #fff;
}

.logo-icon::before {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  right: 7px;
  top: 6px;
}

.logo-icon::after {
  width: 24px;
  height: 7px;
  border-radius: 999px;
  left: 8px;
  bottom: 8px;
  opacity: 0.8;
}

.logo-text {
  display: grid;
  line-height: 1;
}

.logo-text strong {
  color: #1f7fd8;
  font-size: 22px;
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0;
}

.logo-text small {
  margin-top: 3px;
  color: #1f7fd8;
  font-size: 11px;
  font-weight: 800;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.main-nav a {
  position: relative;
  flex: 0 0 auto;
  color: #2d4053;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  min-width: 76px;
  border-radius: 8px;
  padding: 12px 16px;
  background: #f3f6f9;
  box-shadow:
    0 4px 10px rgba(26, 44, 62, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  transition:
    box-shadow 120ms ease,
    transform 120ms ease,
    background-color 120ms ease;
}

.main-nav a:not(.active) {
  overflow: visible;
  color: #2f4052;
}

.main-nav a.active,
.main-nav a:active {
  color: #1d3550;
  background: #e9eef3;
  transform: translateY(1px);
  box-shadow:
    inset 0 3px 8px rgba(26, 44, 62, 0.14),
    inset 0 -1px 0 rgba(255, 255, 255, 0.85);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.login-button,
.register-button,
.round-button {
  border: 0;
  cursor: pointer;
  color: #2d4053;
  background: #f5f7f9;
}

.login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  height: 34px;
  border-radius: 6px;
  font-size: 14px;
}

.register-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  height: 34px;
  border-radius: 6px;
  background: #eef5ff;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
}

.user-menu,
.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  border-radius: 6px;
  padding: 0 10px;
  background: #f5f7f9;
  color: #2d4053;
  font-size: 13px;
  font-weight: 800;
}

.user-menu small,
.user-pill small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.user-menu a,
.user-pill a {
  color: var(--blue);
}

.user-entry {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: -12px;
}

.user-entry .user-pill {
  max-width: 310px;
}

.user-entry .user-pill span,
.user-entry .user-pill small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar-button,
.popover-avatar,
.user-sidebar-avatar {
  display: inline-block;
  overflow: hidden;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 36%, #fff 0 17%, transparent 18%),
    radial-gradient(circle at 50% 78%, #fff 0 28%, transparent 29%),
    #d7dce3;
}

.avatar-button img,
.popover-avatar img,
.user-sidebar-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-button {
  width: 42px;
  height: 42px;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,0.7);
}

.user-popover {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 60;
  width: 330px;
  border: 1px solid #edf0f4;
  background: #fff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.16);
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: 0.16s ease;
}

.user-popover::before {
  content: "";
  position: absolute;
  top: -9px;
  right: 24px;
  width: 18px;
  height: 18px;
  background: #fff;
  transform: rotate(45deg);
}

.user-entry:hover .user-popover,
.user-entry:focus-within .user-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.popover-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.popover-avatar {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
}

.popover-user strong {
  color: #1f2937;
}

.popover-user em {
  display: inline-flex;
  margin-left: 6px;
  border-radius: 999px;
  padding: 3px 8px;
  background: #eef2f7;
  color: #5b6572;
  font-size: 12px;
  font-style: normal;
}

.popover-line {
  margin: 14px 0;
  background: #f4f4f4;
  padding: 12px;
  color: #485466;
}

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

.popover-actions a {
  display: grid;
  min-height: 44px;
  place-items: center;
  border-radius: 999px;
  background: #f6f7f9;
  color: #1f2937;
  font-size: 13px;
  text-align: center;
}

.round-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  font-size: 16px;
}

.hero {
  position: relative;
  display: grid;
  min-height: 360px;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(rgba(55, 66, 78, 0.96), rgba(55, 66, 78, 0.96)),
    var(--hero);
}

.hero-pattern {
  position: absolute;
  inset: -80px -40px;
  opacity: 0.32;
  background:
    linear-gradient(64deg, transparent 0 22%, rgba(29, 39, 50, 0.58) 22% 29%, transparent 29% 100%),
    linear-gradient(154deg, transparent 0 46%, rgba(25, 34, 43, 0.5) 46% 52%, transparent 52% 100%),
    linear-gradient(116deg, transparent 0 62%, rgba(88, 103, 119, 0.35) 62% 70%, transparent 70% 100%);
  transform: rotate(-7deg) scale(1.12);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1000px, calc(100% - 44px));
  margin-top: 2px;
  text-align: center;
}

.hero h1 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(22px, 2.45vw, 32px);
  font-weight: 500;
  letter-spacing: 1px;
}

.hero p {
  margin: 0 auto 20px;
  color: #fff;
  font-size: clamp(13px, 1.25vw, 17px);
  line-height: 1.65;
}

.search-box {
  display: grid;
  grid-template-columns: 1fr 210px;
  gap: 34px;
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 10px 12px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.22);
}

.search-box input {
  width: 100%;
  height: 42px;
  min-width: 0;
  border: 1px solid #d6dce3;
  border-radius: 5px;
  padding: 0 16px;
  color: #334;
  outline: 0;
  background: #fff;
  font-size: 15px;
}

.search-box input:focus {
  border-color: #78a8d8;
  box-shadow: 0 0 0 3px rgba(120, 168, 216, 0.22);
}

.search-box button {
  height: 42px;
  border: 0;
  border-radius: 5px;
  color: #fff;
  cursor: pointer;
  background: var(--blue-dark);
  font-weight: 800;
}

.latest-section {
  padding: 40px 0 68px;
}

.section-title {
  display: flex;
  align-items: center;
  width: min(1760px, calc(100% - 140px));
  margin: 0 auto 36px;
}

.section-title::after {
  flex: 1;
  height: 1px;
  margin-left: 0;
  background: #e2e2e2;
  content: "";
}

.section-title h2 {
  margin: 0;
  padding: 6px 16px;
  border-radius: 5px;
  background: #fff;
  color: #2f3f4f;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.membership-strip {
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: min(1760px, calc(100% - 140px));
  margin: -18px auto 26px;
  clear: both;
}

.membership-strip div {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  background: #fff;
}

.membership-strip strong,
.membership-strip span {
  display: block;
}

.membership-strip strong {
  color: #27394a;
  font-size: 13px;
}

.membership-strip span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 34px;
  width: min(1760px, calc(100% - 140px));
  margin: 0 auto;
}

.resource-card {
  overflow: hidden;
  border-radius: 2px;
  background: var(--card);
  box-shadow: 0 1px 0 rgba(34, 45, 57, 0.08);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.resource-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.resource-preview {
  position: relative;
  height: 136px;
  overflow: hidden;
  border: 1px solid #edf0f3;
  background: #f8fafb;
}

.resource-image-preview {
  display: block;
  background: #fff;
}

.resource-image-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.resource-body {
  min-height: 76px;
  padding: 12px 14px 16px;
}

.resource-body h3 {
  margin: 0 0 7px;
  overflow: hidden;
  color: #263747;
  font-size: 14px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resource-body p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.download-link {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  border-radius: 5px;
  padding: 0 12px;
  background: #eef5ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.resource-list-template {
  display: grid;
  gap: 0;
  width: min(1760px, calc(100% - 140px));
  margin: 0 auto;
  background: #fff;
}

.resource-list-row {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 26px;
  border-bottom: 1px solid var(--line);
  padding: 25px 24px;
  background: #fff;
}

.resource-list-image {
  display: block;
  width: 330px;
  height: 214px;
  overflow: hidden;
  border: 1px solid #edf0f3;
  background: #f8fafb;
}

.resource-list-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.resource-list-image.preview-admin,
.resource-list-image.preview-mobile,
.resource-list-image.preview-phone,
.resource-list-image.preview-chart,
.resource-list-image.preview-shop {
  display: grid;
}

.resource-list-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 214px;
  padding-top: 22px;
  padding-bottom: 18px;
}

.resource-list-info h3 {
  margin: 0 0 16px;
  overflow: hidden;
  color: #172b3f;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resource-list-category {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #66778a;
  font-size: 14px;
}

.resource-list-category span {
  width: 9px;
  height: 9px;
  border: 2px solid #7651bd;
  border-radius: 50%;
}

.resource-list-info p {
  display: -webkit-box;
  margin: 12px 0 16px;
  overflow: hidden;
  color: #8895a6;
  font-size: 15px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.resource-list-info p strong {
  color: #6f7f91;
  font-weight: 800;
}

.resource-list-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: auto;
  color: #7f8da0;
  font-size: 15px;
}

.resource-views {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.resource-views svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.resource-list-meta em {
  display: inline-flex;
  min-width: 34px;
  height: 24px;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  border: 1px solid #e2c474;
  border-radius: 3px;
  padding: 0 7px;
  background: #fff6d8;
  color: #8b6508;
  font-size: 16px;
  font-style: normal;
}

.preview-admin {
  display: grid;
  grid-template-columns: 72px 1fr;
  grid-template-rows: 24px repeat(5, 1fr);
  gap: 6px;
  padding: 8px;
  background: #fbfcff;
}

.preview-admin span:first-child {
  grid-column: 1 / -1;
  background: #5856b7;
}

.preview-admin span {
  border-radius: 2px;
  background: linear-gradient(90deg, #eef2f7, #d9e0e8);
}

.preview-mobile {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 10px;
  background: #f4fbfa;
}

.preview-mobile span,
.preview-phone span,
.preview-shop span {
  border-radius: 14px;
  border: 2px solid #eef2f4;
  background:
    linear-gradient(#7bdccf 0 24%, transparent 24%),
    linear-gradient(90deg, transparent 0 12%, #edf4f5 12% 88%, transparent 88%);
}

.preview-phone {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 0 18px;
  background: #fff0ec;
}

.preview-phone span {
  transform: translateY(12px);
  background:
    linear-gradient(#ff6a61 0 20%, transparent 20%),
    linear-gradient(90deg, transparent 0 12%, #fff 12% 88%, transparent 88%),
    #ffe5df;
}

.preview-chart {
  display: grid;
  grid-template-columns: 46px 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 9px;
  padding: 10px;
}

.preview-chart span:first-child {
  grid-row: 1 / -1;
  background: #e8f0f7;
}

.preview-chart span:nth-child(2) {
  border-radius: 50%;
  background: conic-gradient(#55cc28 0 42%, #ffb000 42% 70%, #e8edf2 70%);
}

.preview-chart span:nth-child(3) {
  border-radius: 50%;
  background: conic-gradient(#2c95e8 0 38%, #7bc85f 38% 72%, #e8edf2 72%);
}

.preview-chart span:nth-child(4) {
  grid-column: 2 / -1;
  background:
    linear-gradient(145deg, transparent 0 40%, rgba(124, 200, 95, 0.5) 40% 64%, transparent 64%),
    #f0f6f3;
}

.preview-shop {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 8px;
  background: #fff8d8;
}

.preview-shop span {
  transform: translateY(10px);
  background:
    linear-gradient(#ffc828 0 28%, transparent 28%),
    linear-gradient(90deg, transparent 0 12%, #fff 12% 88%, transparent 88%),
    #fff4b6;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.auth-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(29, 115, 201, 0.14), transparent 34%),
    #edf3f8;
}

.auth-card {
  width: min(420px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.auth-logo.has-logo-image .logo-image-wrap {
  width: 170px;
  height: 54px;
}

.auth-card h1 {
  margin: 0 0 8px;
  font-size: 24px;
}

.auth-card p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form label {
  display: grid;
  gap: 7px;
}

.auth-form label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.auth-form input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 12px;
  outline: 0;
}

.auth-form input:focus {
  border-color: #78a8d8;
  box-shadow: 0 0 0 3px rgba(120, 168, 216, 0.18);
}

.auth-form button {
  height: 40px;
  border: 0;
  border-radius: 7px;
  background: var(--blue-dark);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

.auth-error {
  margin-bottom: 14px;
  border-radius: 7px;
  padding: 10px 12px;
  background: #fff1f1;
  color: #c0392b;
  font-size: 13px;
  font-weight: 800;
}

.auth-success {
  margin-bottom: 14px;
  border-radius: 7px;
  padding: 10px 12px;
  background: #edf9f2;
  color: #1d7a46;
  font-size: 13px;
  font-weight: 800;
}

.auth-switch {
  margin-top: 16px;
  color: var(--muted);
  text-align: center;
}

.auth-switch a {
  color: var(--blue);
  font-weight: 800;
}

.member-card {
  width: min(1120px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.member-heading {
  display: grid;
  grid-template-columns: 280px minmax(360px, 1fr) 112px;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 20px;
}

.member-title-block {
  min-width: 0;
}

.member-heading h1 {
  margin: 0 0 8px;
  font-size: 24px;
}

.member-heading p {
  margin: 0;
  color: var(--muted);
}

.member-intro {
  min-height: 92px;
  border: 1px solid #edf1f5;
  border-radius: 8px;
  padding: 12px 16px;
  background: #fbfdff;
  color: #43576b;
  font-size: 14px;
  line-height: 1.65;
}

.member-heading-actions {
  display: flex;
  justify-content: flex-end;
}

.member-heading-actions > a {
  display: inline-flex;
  width: 112px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  padding: 0 12px;
  background: #eef5ff;
  color: var(--blue);
  font-weight: 800;
}

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

.vip-plan-card {
  --vip-color: #18b8d8;
  display: flex;
  min-height: 244px;
  overflow: hidden;
  flex-direction: column;
  align-items: center;
  border-radius: 8px;
  background: #fff;
  text-align: center;
  box-shadow: 0 10px 26px rgba(35, 50, 66, 0.08);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.vip-plan-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(35, 50, 66, 0.14);
}

.vip-plan-card strong {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  background: var(--vip-color);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}

.vip-price {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-top: 18px;
  color: #1f2026;
}

.vip-price b {
  font-size: 30px;
  line-height: 1;
}

.vip-price span {
  margin-bottom: 3px;
  font-size: 16px;
  font-weight: 800;
}

.vip-period {
  display: inline-flex;
  min-width: 66px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  margin: 10px 0 24px;
  border-radius: 999px;
  padding: 0 15px;
  background: #f5f5f5;
  color: #111827;
  font-size: 14px;
}

.vip-plan-card p {
  margin: 0 0 18px;
  color: #0f172a;
  font-size: 16px;
  line-height: 1.35;
}

.plan-open-form {
  margin: auto 0 22px;
}

.vip-plan-card button {
  min-width: 112px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: var(--vip-color);
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
}

.vip-plan-indigo {
  --vip-color: #514da0;
}

.vip-plan-violet {
  --vip-color: #7a0ee8;
}

.vip-plan-gold {
  --vip-color: #d3c64d;
}

.payment-choice {
  display: grid;
  gap: 6px;
  margin: 4px 0;
}

.payment-choice label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #43576b;
  font-size: 13px;
  font-weight: 800;
}

.payment-choice input {
  accent-color: var(--blue);
}

.price-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 31, 46, 0.42);
}

.price-modal.open {
  display: flex;
}

.price-modal-panel {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border-radius: 8px;
  padding: 24px;
  background: #fff;
  box-shadow: 0 26px 80px rgba(16, 36, 58, 0.22);
}

.modal-close {
  position: absolute;
  right: 16px;
  top: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
  color: #334;
  cursor: pointer;
  font-size: 22px;
}

.price-modal h2 {
  margin: 0 0 6px;
  font-size: 24px;
}

.price-modal p {
  margin: 0 0 18px;
  color: var(--muted);
}

.modal-plan-grid {
  display: grid;
  gap: 10px;
}

.modal-plan {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  cursor: pointer;
}

.modal-plan input,
.modal-payment input {
  accent-color: var(--blue);
}

.modal-plan strong,
.modal-plan small {
  display: block;
}

.modal-plan small {
  margin-top: 3px;
  color: var(--muted);
}

.modal-plan em,
.checkout-summary em {
  color: var(--blue);
  font-size: 20px;
  font-style: normal;
  font-weight: 900;
}

.modal-payment {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.modal-payment h3 {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 17px;
}

.modal-payment label {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
  color: #31475d;
  cursor: pointer;
  font-weight: 800;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.pay-icon {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.alipay-icon {
  background: #1677ff;
}

.wechat-icon {
  background: #1aad19;
}

.modal-payment label:has(input:checked),
.modal-payment label.selected {
  border-color: var(--blue);
  background: #eaf4ff;
  color: var(--blue);
}

.modal-payment input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.modal-submit {
  width: 100%;
  height: 42px;
  margin-top: 18px;
  border: 0;
  border-radius: 8px;
  background: var(--blue-dark);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

.result-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.result-actions a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #eef5ff;
  color: var(--blue);
  font-weight: 800;
}

.result-actions .primary-result {
  background: var(--blue-dark);
  color: #fff;
}

.download-result-card {
  width: min(560px, 100%);
}

.download-info {
  display: grid;
  gap: 12px;
  margin: 18px 0 8px;
}

.download-info label {
  display: grid;
  gap: 6px;
}

.download-info span {
  color: var(--muted);
  font-size: 13px;
}

.download-info input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px 14px;
  background: #f8fafc;
  color: var(--ink);
  font-size: 14px;
}

.detail-page {
  background: #f5f5f5;
}

.user-center-page {
  min-height: 100vh;
  background: #f4f4f4;
}

.user-center-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  width: min(1500px, calc(100% - 80px));
  min-height: 720px;
  margin: 30px auto;
  background: #fff;
}

.user-sidebar {
  border-right: 1px solid #f0f0f0;
  padding: 26px 24px;
  text-align: center;
}

.user-sidebar-avatar {
  width: 64px;
  height: 64px;
  margin-bottom: 12px;
}

.user-sidebar > strong {
  display: block;
  margin-bottom: 30px;
  color: #111827;
  font-size: 20px;
}

.user-sidebar nav {
  display: grid;
  gap: 8px;
  text-align: left;
}

.user-sidebar nav a {
  display: flex;
  min-height: 46px;
  align-items: center;
  border-radius: 4px;
  padding: 0 24px;
  color: #6b7280;
  font-size: 18px;
}

.user-sidebar nav a.active,
.user-sidebar nav a:hover {
  background: #f0f0f0;
  color: #7651bd;
}

.user-content {
  padding: 50px 38px;
}

.user-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 42px;
}

.user-stats article {
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 32px 26px;
}

.user-stats strong {
  display: block;
  margin-bottom: 18px;
  color: #1f2937;
  font-size: 42px;
}

.user-stats article strong {
  color: #7651bd;
}

.user-stats span {
  color: #6b7280;
}

.user-vip-grid {
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.user-table {
  width: 100%;
  border-collapse: collapse;
  color: #1f2937;
}

.user-table th,
.user-table td {
  border-bottom: 1px solid #ddd;
  padding: 16px 12px;
  text-align: left;
}

.user-table tbody tr:nth-child(odd) {
  background: #f7f7f7;
}

.user-table a {
  color: #111827;
  font-weight: 700;
}

.user-note {
  margin-top: 28px;
  color: #6b7280;
}

.profile-form {
  display: grid;
  gap: 18px;
  max-width: 620px;
}

.password-form {
  margin-top: 34px;
  border-top: 1px solid #edf0f4;
  padding-top: 28px;
}

.profile-form label {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.profile-form span {
  color: #4b5563;
  text-align: right;
}

.profile-form input,
.profile-form textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 12px 14px;
  color: #1f2937;
}

.profile-form button {
  justify-self: start;
  margin-left: 124px;
  border: 0;
  border-radius: 5px;
  padding: 13px 36px;
  background: #7651bd;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

.detail-shell {
  width: min(1120px, calc(100% - 44px));
  margin: 28px auto 70px;
}

.detail-breadcrumb {
  margin-bottom: 18px;
  color: #728093;
  font-size: 14px;
}

.detail-breadcrumb a {
  color: #526579;
}

.detail-breadcrumb span {
  margin: 0 8px;
}

.detail-panel {
  background: #fff;
  padding: 24px;
}

.detail-panel h1 {
  margin: 0 0 18px;
  color: #172b3f;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.45;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-bottom: 24px;
  color: #728093;
  font-size: 14px;
}

.detail-category {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.detail-category svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.detail-section {
  margin-top: 26px;
}

.detail-section h2 {
  margin: 0 0 18px;
  border-left: 5px solid #7651bd;
  padding: 14px 18px;
  background: #f8f8f8;
  color: #172b3f;
  font-size: 22px;
  line-height: 1.2;
}

.detail-section p,
.detail-richtext {
  margin: 0;
  color: #1f2937;
  font-size: 17px;
  line-height: 1.9;
}

.detail-spec-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
  border: 1px solid #edf0f5;
  background: #fbfcfe;
  padding: 12px;
}

.detail-spec-item {
  min-width: 0;
  border: 1px solid #e5eaf1;
  background: #fff;
  padding: 12px 10px;
  text-align: center;
}

.detail-spec-item span {
  display: block;
  margin-bottom: 7px;
  color: #7b8797;
  font-size: 13px;
}

.detail-spec-item strong {
  display: block;
  overflow: hidden;
  color: #172b3f;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.detail-gallery img {
  display: block;
  width: 100%;
  background: #f8fafb;
  cursor: zoom-in;
  object-fit: contain;
}

.image-hover-viewer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(15, 23, 42, 0.62);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease;
}

.image-hover-viewer.open {
  opacity: 1;
}

.image-hover-viewer img {
  display: block;
  max-width: min(92vw, 1280px);
  max-height: 88vh;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
  object-fit: contain;
}

.detail-video {
  display: block;
  width: 100%;
  max-height: 560px;
  background: #111827;
}

.detail-download {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 18px;
  align-items: center;
  margin-top: 34px;
  border: 2px dashed #7651bd;
  border-radius: 6px;
  padding: 20px 28px;
}

.detail-download small {
  display: inline-block;
  margin: -34px 0 8px;
  background: #fff;
  color: #7651bd;
  font-size: 18px;
  font-weight: 900;
}

.detail-download p {
  margin: 0;
  color: #51445d;
}

.detail-download strong {
  color: #7651bd;
  font-size: 30px;
}

.detail-download span {
  color: #51445d;
  white-space: nowrap;
}

.detail-download a,
.detail-back {
  display: inline-flex;
  min-width: 126px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 0 18px;
  background: #7651bd;
  color: #fff;
  font-weight: 900;
}

.floating-tools {
  position: fixed;
  right: 22px;
  bottom: 56px;
  z-index: 80;
  display: grid;
  gap: 10px;
}

.floating-tool,
.floating-tool:visited {
  position: relative;
  width: 48px;
  height: 48px;
  border: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  color: #5f6b7a;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(31, 44, 61, 0.13);
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.floating-tool::before {
  position: absolute;
  right: 58px;
  top: 50%;
  min-width: 72px;
  padding: 7px 10px;
  border-radius: 7px;
  background: rgba(17, 24, 39, 0.92);
  color: #ffffff;
  content: attr(data-tooltip);
  font-size: 13px;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(8px, -50%);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.floating-tool:not([data-tooltip])::before,
.floating-tool:not([data-tooltip])::after {
  display: none;
}

.floating-tool::after {
  position: absolute;
  right: 51px;
  top: 50%;
  border: 6px solid transparent;
  border-left-color: rgba(17, 24, 39, 0.92);
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translate(8px, -50%);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.floating-tool:hover::before,
.floating-tool:hover::after {
  opacity: 1;
  transform: translate(0, -50%);
}

.floating-tool:hover {
  transform: translateY(-4px);
  background: #ffffff;
  color: #4b5563;
  box-shadow: 0 18px 34px rgba(123, 82, 199, 0.28);
}

.floating-chat-button {
  background: linear-gradient(135deg, #8b5cf6, #6d4acb);
  color: #ffffff;
}

.floating-wechat-tool {
  position: relative;
}

.wechat-main,
.wechat-mini {
  position: absolute;
  display: block;
  border: 2px solid #7b828c;
  border-radius: 999px;
}

.wechat-main {
  left: 11px;
  top: 13px;
  width: 22px;
  height: 17px;
}

.wechat-mini {
  right: 10px;
  bottom: 12px;
  width: 18px;
  height: 14px;
  background: #f7f7f7;
}

.wechat-main::after,
.wechat-mini::after {
  position: absolute;
  content: "";
  border-style: solid;
}

.wechat-main::after {
  left: 3px;
  bottom: -6px;
  border-width: 5px 5px 0 0;
  border-color: #7b828c transparent transparent transparent;
}

.wechat-mini::after {
  right: 2px;
  bottom: -5px;
  border-width: 4px 0 0 5px;
  border-color: transparent transparent transparent #7b828c;
}

.wechat-main i,
.wechat-mini i {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: #7b828c;
  box-shadow: 7px 0 0 #7b828c;
}

.wechat-mini i {
  top: 5px;
  left: 5px;
  width: 2px;
  height: 2px;
  box-shadow: 6px 0 0 #7b828c;
}

.floating-vip-tool {
  color: #6b7280;
  font-size: 25px;
  line-height: 1;
}

.moon-icon {
  position: relative;
  width: 23px;
  height: 23px;
  display: block;
}

.moon-icon::before {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #7b828c;
  content: "";
}

.moon-icon::after {
  position: absolute;
  left: 10px;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #ffffff;
  content: "";
}

.moon-icon i {
  position: absolute;
  right: 1px;
  top: 3px;
  z-index: 1;
  width: 7px;
  height: 7px;
  background: #7b828c;
  clip-path: polygon(50% 0, 62% 34%, 98% 34%, 68% 54%, 80% 90%, 50% 68%, 20% 90%, 32% 54%, 2% 34%, 38% 34%);
}

.floating-tool-wrap {
  position: relative;
}

.floating-qr-popover {
  position: absolute;
  right: 62px;
  top: -8px;
  width: 166px;
  min-height: 166px;
  padding: 12px;
  display: none;
  place-items: center;
  border-radius: 12px;
  background: #ffffff;
  color: #64748b;
  box-shadow: 0 18px 44px rgba(31, 44, 61, 0.2);
}

.floating-tool-wrap:hover .floating-qr-popover {
  display: grid;
}

.floating-qr-popover img {
  width: 142px;
  height: 142px;
  object-fit: contain;
}

.floating-chat-panel {
  position: fixed;
  right: 78px;
  bottom: 54px;
  z-index: 90;
  width: min(380px, calc(100vw - 110px));
  height: min(540px, calc(100vh - 120px));
  display: grid;
  grid-template-rows: 58px 1fr 82px;
  overflow: hidden;
  border-radius: 8px;
  background: #1f1f1f;
  color: #d1d5db;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

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

.floating-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 18px;
  border-bottom: 1px solid #303030;
  background: #242424;
}

.floating-chat-head strong {
  margin-right: auto;
}

.floating-chat-head small {
  color: #34d399;
  font-size: 12px;
}

.floating-chat-head button {
  border: 0;
  background: transparent;
  color: #a3a3a3;
  font-size: 24px;
  cursor: pointer;
}

.floating-chat-body {
  padding: 18px;
  overflow-y: auto;
  background: #1f1f1f;
}

.chat-message {
  width: fit-content;
  max-width: 78%;
  margin: 0 0 14px;
  padding: 10px 13px;
  border-radius: 6px;
  line-height: 1.6;
  font-size: 14px;
}

.chat-message.service {
  background: #353535;
  color: #e5e7eb;
}

.chat-message.user {
  margin-left: auto;
  background: #35d485;
  color: #111827;
}

.floating-chat-form {
  display: grid;
  grid-template-columns: 1fr 72px;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid #303030;
  background: #202020;
}

.floating-chat-form input {
  min-width: 0;
  border: 1px solid #3b3b3b;
  border-radius: 6px;
  background: #171717;
  color: #e5e7eb;
  padding: 0 12px;
}

.floating-chat-form button {
  border: 0;
  border-radius: 6px;
  background: #35d485;
  color: #102018;
  font-weight: 800;
  cursor: pointer;
}

html.night-mode body {
  background: #111827;
  color: #cbd5e1;
}

html.night-mode .site-header,
html.night-mode .user-center-page,
html.night-mode .auth-page,
html.night-mode .resources-section {
  background: #111827;
  color: #cbd5e1;
}

html.night-mode .header-inner,
html.night-mode .user-center-shell,
html.night-mode .user-sidebar,
html.night-mode .user-content,
html.night-mode .detail-panel,
html.night-mode .auth-card,
html.night-mode .member-card,
html.night-mode .resource-card,
html.night-mode .resource-list-card,
html.night-mode .section-title,
html.night-mode .user-stat,
html.night-mode .profile-form {
  background: #172033;
  color: #cbd5e1;
  border-color: #2d3748;
}

html.night-mode .section-title {
  background: transparent;
}

html.night-mode .section-title::after {
  background: #334155;
}

html.night-mode .section-title h2 {
  background: #1f2937;
  color: #e5e7eb;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

html.night-mode h1,
html.night-mode h2,
html.night-mode h3,
html.night-mode .resource-title,
html.night-mode .nav a,
html.night-mode .user-stat strong {
  color: #f3f4f6;
}

html.night-mode p,
html.night-mode small,
html.night-mode .resource-meta,
html.night-mode .user-sidebar a,
html.night-mode .profile-form span {
  color: #94a3b8;
}

html.night-mode input,
html.night-mode textarea {
  background: #101827;
  color: #e5e7eb;
  border-color: #334155;
}

html.night-mode .floating-tool {
  background: #f4f4f4;
  color: #6b7280;
}

html.night-mode .floating-chat-button,
html.night-mode .floating-tool:hover {
  background: #ffffff;
  color: #4b5563;
}

html.night-mode .floating-chat-button {
  background: linear-gradient(135deg, #8b5cf6, #6d4acb);
  color: #ffffff;
}

@media (max-width: 1280px) {
  .header-inner,
  .section-title,
  .membership-strip,
  .resource-grid,
  .resource-list-template {
    width: min(1120px, calc(100% - 48px));
  }

  .main-nav {
    gap: 16px;
  }

  .main-nav a:not(.active) {
    min-width: 76px;
  }

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

@media (max-width: 860px) {
  :root {
    --header-height: auto;
  }

  .site-header {
    position: static;
    height: auto;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 14px;
    width: calc(100% - 28px);
    padding: 14px 0;
  }

  .logo {
    min-width: 0;
    flex: 1;
    border-right: 0;
    padding-right: 0;
  }

  .logo-text strong {
    font-size: 20px;
  }

  .header-actions {
    gap: 10px;
  }

  .login-button {
    min-width: 72px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    flex: 0 0 100%;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .main-nav a,
  .main-nav a:not(.active) {
    width: auto;
    height: auto;
    padding: 7px 11px;
    border-radius: 999px;
    color: #506274;
    background: #f2f5f7;
    font-size: 13px;
  }

  .main-nav a.active {
    color: #fff;
    background: var(--blue);
  }

  .hero {
    min-height: 320px;
    padding: 40px 0;
  }

  .hero-content {
    width: calc(100% - 28px);
  }

  .hero h1 {
    letter-spacing: 0;
  }

  .hero p {
    font-size: 13px;
  }

  .search-box {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px;
  }

  .search-box input,
  .search-box button {
    height: 40px;
    font-size: 14px;
  }

  .latest-section {
    padding: 30px 0 54px;
  }

  .section-title,
  .membership-strip,
  .resource-grid,
  .resource-list-template {
    width: calc(100% - 28px);
  }

  .membership-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 22px;
  }

  .section-title {
    margin-bottom: 22px;
  }

  .section-title h2 {
    font-size: 19px;
  }

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

  .resource-list-row {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px;
  }

  .resource-list-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1.54;
  }

  .resource-list-info h3 {
    display: -webkit-box;
    font-size: 21px;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .resource-list-info p {
    font-size: 16px;
  }

  .vip-plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .resource-preview {
    height: 126px;
  }

  .detail-shell {
    width: calc(100% - 28px);
  }

  .detail-panel {
    padding: 18px;
  }

  .detail-panel h1 {
    font-size: 23px;
  }

  .detail-gallery {
    grid-template-columns: 1fr;
  }

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

  .user-center-shell {
    grid-template-columns: 1fr;
    width: calc(100% - 28px);
  }

  .user-sidebar {
    border-right: 0;
    border-bottom: 1px solid #f0f0f0;
  }

  .user-stats,
  .user-vip-grid {
    grid-template-columns: 1fr;
  }

  .detail-download {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .detail-spec-grid {
    grid-template-columns: 1fr;
  }

  .user-content {
    padding: 24px 16px;
  }

  .profile-form label {
    grid-template-columns: 1fr;
  }

  .profile-form span {
    text-align: left;
  }

  .profile-form button {
    margin-left: 0;
  }

  .logo-icon {
    width: 32px;
    height: 27px;
  }

  .round-button {
    width: 36px;
    height: 36px;
  }

  .hero {
    min-height: 300px;
  }

  .resource-grid {
    grid-template-columns: 1fr;
  }

  .membership-strip {
    grid-template-columns: 1fr;
  }

  .member-heading {
    grid-template-columns: 1fr;
  }

  .member-heading-actions {
    justify-content: flex-start;
  }

  .vip-plan-grid {
    grid-template-columns: 1fr;
  }

  .modal-payment {
    grid-template-columns: 1fr;
  }

  .resource-preview {
    height: 152px;
  }
}
