/* ================================================================
   style.css — 神奇助手 (lm158.com) 全站统一样式
   覆盖页面：首页 / 搜索结果 / 资源详情 / 跳转下载
             用户中心 / 升级会员 / 用户退款
             登录 / 注册 / 注册结果
   ================================================================ */

/* ==================== 1. CSS 变量 ==================== */
:root {
  --primary: #4f6ef7;
  --primary-dark: #3a56d4;
  --primary-light: #eef0ff;
  --gradient: linear-gradient(135deg, #4f6ef7 0%, #7c3aed 100%);
  --text-main: #1a1a2e;
  --text-sub: #555;
  --text-light: #888;
  --border: #e8e8f0;
  --bg: #f5f7ff;
  --card-bg: #ffffff;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(79, 110, 247, 0.08);
  --shadow-hover: 0 6px 24px rgba(79, 110, 247, 0.16);
}

/* ==================== 2. 全局重置 ==================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
input[type="radio"] {
    width: 20px; /* 设置宽度 */
    height: 20px; /* 设置高度 */
}
input[type="checkbox"] {
    width: 20px; /* 设置宽度 */
    height: 20px; /* 设置高度 */
}
/* ==================== 3. 顶部导航 ==================== */
.navbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
}

.navbar-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--primary);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-links a {
  padding: 6px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-sub);
  font-size: 14px;
  transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 500;
}

/* ==================== 4. 面包屑 ==================== */
.breadcrumb {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 10px 20px;
}

.breadcrumb-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-light);
}

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

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

.breadcrumb-sep {
  color: #ccc;
}

.breadcrumb-current {
  color: var(--text-sub);
}

/* ==================== 5. Hero 搜索区（首页专用） ==================== */
.hero {
  background: var(--gradient);
  padding: 52px 20px 44px;
  text-align: center;
}

.hero h1 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.hero p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  margin-bottom: 28px;
}

.search-box {
  display: flex;
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.search-box input {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 18px;
  font-size: 15px;
  color: var(--text-main);
  background: transparent;
}

.search-box input::placeholder {
  color: #bbb;
}

.search-box button {
  padding: 0 24px;
  background: var(--primary);
  border: none;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.search-box button:hover {
  background: var(--primary-dark);
}

/* ==================== 6. 搜索条（搜索页专用） ==================== */
.search-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
}

.search-bar-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
  align-items: center;
}

.search-bar input {
  flex: 1;
  max-width: 480px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 14px;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s;
}

.search-bar input:focus {
  border-color: var(--primary);
}

.search-bar button {
  padding: 9px 22px;
  background: var(--primary);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.search-bar button:hover {
  background: var(--primary-dark);
}

/* ==================== 7. 主内容容器 ==================== */
.main {
  max-width: 960px;
  margin: 32px auto;
  padding: 0 20px;
  flex: 1;
  width: 100%;
  min-width: 0;
}

/* ==================== 8. 通用标题 ==================== */
.section-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::before {
  content: "";
  width: 4px;
  height: 18px;
  background: var(--primary);
  border-radius: 2px;
}

/* ==================== 9. 资源列表（首页） ==================== */
.resource-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.resource-item {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
  box-shadow: var(--shadow);
}

.resource-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

.resource-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.icon-music {
  background: #fff0f5;
}

.icon-doc {
  background: #f0f4ff;
}

.icon-pdf {
  background: #fff4f0;
}

.icon-file {
  background: #f0fff4;
}

.resource-info {
  flex: 1;
  min-width: 0;
}

.resource-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.resource-item:hover .resource-name {
  color: var(--primary);
}

.resource-meta {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 3px;
}

.resource-arrow {
  color: #ccc;
  font-size: 16px;
  flex-shrink: 0;
  transition: color 0.2s;
}

.resource-item:hover .resource-arrow {
  color: var(--primary);
}

/* ==================== 10. 搜索结果列表 ==================== */
.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.result-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.result-title::before {
  content: "";
  width: 4px;
  height: 18px;
  background: var(--primary);
  border-radius: 2px;
}

.result-keyword {
  color: var(--primary);
  font-style: normal;
}

.result-count {
  font-size: 13px;
  color: var(--text-light);
}

.result-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.result-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

.result-item:first-child {
  border-radius: var(--radius) var(--radius) 0 0;
}

.result-item:last-child {
  border-radius: 0 0 var(--radius) var(--radius);
}

.result-item:only-child {
  border-radius: var(--radius);
}

.result-item + .result-item {
  border-top: none;
}

.result-item:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  z-index: 1;
}

.result-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
  background: #f0f4ff;
}

.result-info {
  min-width: 0;
}

.result-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-item:hover .result-name {
  color: var(--primary);
}

.result-meta {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 4px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.result-meta span {
  display: flex;
  align-items: center;
  gap: 3px;
}

.result-action {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-view {
  padding: 5px 14px;
  border: 1.5px solid var(--primary);
  border-radius: 8px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  transition: all 0.2s;
  white-space: nowrap;
}

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

/* ==================== 11. 分页 ==================== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.page-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text-sub);
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.page-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
}

.page-btn.next {
  width: auto;
  padding: 0 16px;
}

/* ==================== 12. 详情卡片（详情页） ==================== */

/* 详情页 main 覆盖默认宽度 */
.main--detail {
  max-width: 960px;
  margin: 28px auto;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 20px;
}

.main--detail > div {
  min-width: 0;
  overflow: hidden;
}

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

  .sidebar {
    display: none;
  }
}

.detail-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-width: 0;
}

.detail-header {
  background: var(--gradient);
  padding: 24px 24px 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.file-thumb {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
}

.detail-title {
  flex: 1;
  min-width: 0;
}

.detail-title h1 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  word-break: break-all;
  line-height: 1.4;
}

.detail-title .subtitle {
  margin-top: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

.detail-body {
  padding: 20px 24px;
  min-width: 0;
  overflow: hidden;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}

.info-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-item:nth-child(odd) {
  border-right: 1px solid var(--border);
}

.info-item:nth-last-child(-n + 2) {
  border-bottom: none;
}

.info-label {
  font-size: 12px;
  color: var(--text-light);
  white-space: nowrap;
}

.info-value {
  font-size: 14px;
  color: var(--text-main);
  font-weight: 500;
}

/* ==================== 13. 按钮组 ==================== */
.btn-group {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.btn-primary {
  flex: 1;
  padding: 13px;
  background: var(--primary);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 16px rgba(79, 110, 247, 0.3);
  transform: translateY(-1px);
}

.btn-secondary {
  padding: 13px 18px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--text-sub);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ==================== 14. 免责声明 ==================== */
.disclaimer {
  background: #fffbf0;
  border: 1px solid #ffe58f;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 13px;
  color: #856404;
  line-height: 1.7;
}

.disclaimer strong {
  color: #5c4300;
}

/* ==================== 15. 相关资源列表 ==================== */
.related-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 20px;
  min-width: 0;
}

.related-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
  min-width: 0;
  width: 100%;
}

.related-item:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.related-item .icon {
  font-size: 16px;
  flex-shrink: 0;
}

.related-item .name {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: var(--text-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.related-item:hover .name {
  color: var(--primary);
}

.related-item .arrow {
  color: #ccc;
  font-size: 14px;
  flex-shrink: 0;
}

/* ==================== 16. 侧边栏 ==================== */
.more-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.more-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.more-header::before {
  content: "";
  width: 4px;
  height: 16px;
  background: var(--primary);
  border-radius: 2px;
}

.more-list {
  padding: 8px 0;
}

.more-item {
  padding: 9px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
  border-bottom: 1px solid var(--border);
}

.more-item:last-child {
  border-bottom: none;
}

.more-item:hover {
  background: var(--primary-light);
}

.more-item .icon {
  font-size: 14px;
  flex-shrink: 0;
}

.more-item .name {
  flex: 1;
  font-size: 13px;
  color: var(--text-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.more-item:hover .name {
  color: var(--primary);
}

/* ==================== 17. 跳转下载页 ==================== */

/* 跳转页 main 覆盖默认宽度 */
.main--goto {
  max-width: 680px;
  margin: 40px auto;
}

.goto-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: center;
}

.goto-banner {
  height: 6px;
  background: linear-gradient(90deg, #4f6ef7, #7c3aed, #ec4899);
}

.goto-body {
  padding: 40px 32px 32px;
}

.file-icon-big {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin: 0 auto 20px;
  box-shadow: 0 4px 20px rgba(79, 110, 247, 0.15);
}

.goto-filename {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.4;
  word-break: break-all;
}

.goto-source {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 28px;
}

/* 状态提示 */
.status-bar {
  background: var(--primary-light);
  border-radius: 10px;
  padding: 12px 18px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4caf50;
  flex-shrink: 0;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(0.8);
  }
}

.status-text {
  font-size: 14px;
  color: var(--primary);
  font-weight: 500;
}

/* 下载按钮 */
.btn-download {
  display: block;
  width: 100%;
  padding: 16px;
  background: var(--gradient);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 4px 20px rgba(79, 110, 247, 0.3);
  margin-bottom: 12px;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(79, 110, 247, 0.4);
}

.btn-download:active {
  transform: translateY(0);
}

.btn-back {
  display: block;
  width: 100%;
  padding: 12px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  color: var(--text-sub);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  text-align: center;
}

.btn-back:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* 信息摘要（跳转页） */
.info-row {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin: 24px 0;
}

.info-cell {
  flex: 1;
  padding: 12px 8px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.info-cell:last-child {
  border-right: none;
}

.info-cell .label {
  font-size: 11px;
  color: var(--text-light);
  margin-bottom: 4px;
}

.info-cell .value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

/* 跳转页声明区 */
.goto-disclaimer {
  background: #fafafa;
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.8;
  text-align: left;
}

.goto-disclaimer strong {
  color: var(--text-sub);
}

/* ==================== 18. 底部 ==================== */
.footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 24px 20px;
  text-align: center;
  font-size: 12px;
  color: var(--text-light);
  line-height: 2;
}

.footer a {
  color: var(--text-light);
  text-decoration: none;
}

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

.footer-disclaimer {
  max-width: 680px;
  margin: 0 auto;
}

/* ==================== 19. 通用页面容器（用户中心/升级/退款） ==================== */

.main--center {
  max-width: 680px;
  margin: 28px auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ==================== 20. 徽章 ==================== */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.badge--free {
  background: #f0f0f0;
  color: #888;
}

.badge--vip {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #fff;
}

/* ==================== 21. 用户中心页 ==================== */

/* 用户信息卡片 */
.user-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.user-card-header {
  background: var(--gradient);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.user-card-title {
  flex: 1;
  min-width: 0;
}

.user-card-title h1 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.user-id {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 4px;
}

.btn-logout {
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-logout:hover {
  background: rgba(255, 255, 255, 0.35);
}

.user-card-body {
  padding: 20px 24px;
}

/* 三列信息网格 */
.info-grid--3 {
  grid-template-columns: 1fr 1fr 1fr;
  margin-bottom: 20px;
}

.info-grid--3 .info-item:nth-child(3n) {
  border-right: none;
}

.info-grid--3 .info-item:nth-last-child(-n + 3) {
  border-bottom: none;
}

@media (max-width: 560px) {
  .info-grid--3 {
    grid-template-columns: 1fr;
  }

  .info-grid--3 .info-item:nth-child(3n) {
    border-right: 1px solid var(--border);
  }

  .info-grid--3 .info-item:last-child {
    border-bottom: none;
  }
}

.btn-upgrade {
  justify-content: center;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.btn-upgrade:hover {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}

/* 会员等级列表 */
.level-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 20px 24px;
}

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

.level-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  transition: all 0.2s;
}

.level-item--active {
  border-color: #fbbf24;
  background: #fffbeb;
}

.level-desc {
  font-size: 13px;
  color: var(--text-sub);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  line-height: 1.8;
}

.perm {
  font-weight: 500;
}

.perm--yes {
  color: #16a34a;
}

.perm--no {
  color: #ef4444;
}

.level-price {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 4px;
}

/* 联系客服卡片 */
.contact-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 20px 24px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--primary-light);
  border-radius: 10px;
}

.contact-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.contact-label {
  font-size: 12px;
  color: var(--text-light);
}

.contact-value {
  font-size: 15px;
  color: var(--text-main);
  font-weight: 500;
}

.contact-value a {
  color: var(--primary);
  text-decoration: none;
}

.contact-value a:hover {
  text-decoration: underline;
}

/* ==================== 22. 升级会员页 ==================== */

.upgrade-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.upgrade-header {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  padding: 36px 24px 28px;
  text-align: center;
}

.upgrade-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.upgrade-header h1 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.upgrade-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.upgrade-body {
  padding: 24px;
}

/* 价格展示 */
.price-display {
  text-align: center;
  padding: 24px;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border-radius: 12px;
  border: 1.5px solid #fde68a;
  margin-bottom: 24px;
}

.price-label {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 6px;
}

.price-amount {
  font-size: 40px;
  font-weight: 800;
  color: #d97706;
  line-height: 1.2;
}

.price-symbol {
  font-size: 22px;
  vertical-align: top;
  margin-right: 2px;
}

.price-unit {
  font-size: 16px;
  font-weight: 600;
  color: #b45309;
  margin-left: 2px;
}

.price-note {
  font-size: 12px;
  color: #92400e;
  margin-top: 10px;
  line-height: 1.6;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* 步骤列表 */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}

.step-item {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.step-item:last-child {
  border-bottom: none;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
  min-width: 0;
}

.step-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.step-desc {
  font-size: 13px;
  color: var(--text-sub);
  margin-top: 4px;
  line-height: 1.7;
}

/* 支付方式 */
.pay-methods {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.pay-method {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-sub);
  font-weight: 500;
}

.pay-icon {
  font-size: 20px;
}

/* 支付按钮 */
.btn-pay {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
  font-size: 17px;
}

.btn-pay:hover {
  box-shadow: 0 8px 28px rgba(245, 158, 11, 0.4);
}

/* 升级条款 */
.terms-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 20px 24px;
}

.terms-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.term-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.7;
}

.term-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.term-item a {
  color: var(--primary);
  text-decoration: none;
}

.term-item a:hover {
  text-decoration: underline;
}

/* ==================== 23. 退款页 ==================== */

.refund-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.refund-header {
  background: linear-gradient(135deg, #6ee7b7 0%, #10b981 100%);
  padding: 36px 24px 28px;
  text-align: center;
}

.refund-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.refund-header h1 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.refund-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.refund-body {
  padding: 24px;
}

.refund-steps {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}

.refund-steps .step-item {
  padding: 18px 16px;
}

/* 退款所需材料 */
.refund-requirements {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.req-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--primary-light);
  border-radius: 8px;
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
}

.req-icon {
  font-size: 16px;
}

/* 特殊情况说明 */
.refund-special {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  border-radius: 10px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.special-icon {
  font-size: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.special-content {
  flex: 1;
  min-width: 0;
}

.special-content p {
  font-size: 13px;
  color: #92400e;
  line-height: 1.7;
  margin-bottom: 10px;
}

/* 退款摘要 */
.refund-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.summary-item {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.summary-item:nth-child(2n) {
  border-right: none;
}

.summary-item:nth-last-child(-n + 2) {
  border-bottom: none;
}

.summary-label {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 4px;
}

.summary-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.summary-value a {
  color: var(--primary);
  text-decoration: none;
}

.summary-value a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .refund-summary {
    grid-template-columns: 1fr;
  }

  .summary-item:nth-child(2n) {
    border-right: 1px solid var(--border);
  }

  .summary-item:last-child {
    border-bottom: none;
  }
}

/* ==================== 24. 登录/注册页 ==================== */

/* 登录注册页整体布局：居中卡片 */
.auth-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.auth-header {
  background: var(--gradient);
  padding: 36px 24px 28px;
  text-align: center;
}

.auth-header--success {
  background: linear-gradient(135deg, #6ee7b7 0%, #10b981 100%);
}

.auth-icon {
  font-size: 48px;
  margin-bottom: 10px;
}

.auth-header h1 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.auth-body {
  padding: 28px 24px 32px;
}

/* 表单样式 */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.1);
}

.form-input::placeholder {
  color: #bbb;
}

/* 提交按钮 */
.btn-auth-submit {
  margin-top: 4px;
  font-size: 16px;
}

/* 分割线 */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 20px;
  color: #ccc;
  font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* 快捷注册 */
.auth-quick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.btn-quick {
  width: 100%;
  justify-content: center;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.btn-quick:hover {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}

.auth-tip {
  font-size: 12px;
  color: var(--text-light);
  text-align: center;
}

/* 底部链接 */
.auth-footer-links {
  margin-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-light);
}

.auth-footer-links a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.auth-footer-links a:hover {
  text-decoration: underline;
}

.auth-footer-sep {
  margin: 0 8px;
  color: #ddd;
}

/* ==================== 25. 注册结果页 ==================== */

/* 账号密码展示 */
.reg-result {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.result-field {
  background: var(--primary-light);
  border: 1.5px solid rgba(79, 110, 247, 0.15);
  border-radius: 10px;
  padding: 14px 16px;
}

.result-field-label {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 6px;
}

.result-field-value {
  display: flex;
  align-items: center;
  gap: 10px;
}

.result-field-value span {
  flex: 1;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  word-break: break-all;
  font-family: "SF Mono", "Consolas", "Liberation Mono", "Menlo", monospace;
}

.btn-copy {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: background 0.2s;
  flex-shrink: 0;
}

.btn-copy:hover {
  background: rgba(79, 110, 247, 0.1);
}

/* 提示说明 */
.auth-info-note {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.8;
  margin: 16px 0 20px;
  padding: 12px 16px;
  background: #f8f9fa;
  border-radius: 10px;
}

.auth-info-note strong {
  color: var(--primary);
}

@media (max-width: 480px) {
  .auth-page {
    padding: 20px 16px;
    align-items: flex-start;
  }

  .auth-body {
    padding: 20px 18px 24px;
  }
}
