/* ============================================================
   大龙科技 · v3 二次元梦幻模板
   粉紫蓝梦幻渐变 + 圆润卡片 + 星星光点装饰，手机端自适应
   ============================================================ */

:root {
  --bg: #fbf3ff;
  --bg2: #eef2ff;
  --card: #ffffff;
  --border: #f0e1ff;
  --border-strong: #dcb9ff;
  --text: #5b4a75;
  --text-dim: #a58fc4;
  --text-bright: #3b2a57;
  --pink: #ec4899;
  --purple: #a855f7;
  --violet: #7c3aed;
  --blue: #6366f1;
  --grad: linear-gradient(135deg, #ec4899, #a855f7 55%, #6366f1);
  --grad-soft: linear-gradient(135deg, #fdf2ff, #eef2ff);
  --radius: 18px;
  --shadow: 0 10px 30px rgba(168, 85, 247, .14);
  --glow: 0 0 0 1px rgba(168, 85, 247, .12), 0 14px 34px rgba(168, 85, 247, .2);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(180deg, #fdf2ff 0%, #f3f0ff 40%, #eef2ff 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  position: relative;
}

/* 漂浮光点装饰 */
body::before, body::after {
  content: ''; position: fixed; z-index: 0; pointer-events: none; border-radius: 50%;
  filter: blur(2px); opacity: .5;
}
body::before {
  width: 220px; height: 220px; top: -60px; right: -60px;
  background: radial-gradient(circle, rgba(236, 72, 153, .28), transparent 70%);
  animation: floatDot 12s ease-in-out infinite;
}
body::after {
  width: 260px; height: 260px; bottom: 40px; left: -80px;
  background: radial-gradient(circle, rgba(99, 102, 241, .25), transparent 70%);
  animation: floatDot 15s ease-in-out infinite reverse;
}
@keyframes floatDot { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-24px) scale(1.08); } }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }

/* ---------------- 顶栏 ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(168, 85, 247, .08);
}
.site-header::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--grad); opacity: .5;
}
.header-inner { display: flex; align-items: center; gap: 26px; padding: 12px 0; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 800;
  letter-spacing: 2px; color: var(--text-bright); white-space: nowrap; }
.logo img { height: 38px; width: auto; }
.logo .logo-txt {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px rgba(168, 85, 247, .3));
}
.logo::after { content: '✦'; color: var(--pink); font-size: 18px; animation: sparkle 2.4s infinite; }
@keyframes sparkle { 0%, 100% { opacity: 1; transform: scale(1) rotate(0); } 50% { opacity: .4; transform: scale(1.25) rotate(20deg); } }

.main-nav { display: flex; align-items: center; gap: 2px; flex: 1; flex-wrap: wrap; }
.main-nav a {
  padding: 8px 16px; border-radius: 999px; font-size: 15px; color: var(--text);
  transition: all .2s; white-space: nowrap;
}
.main-nav a:hover { color: var(--purple); background: rgba(168, 85, 247, .09); }
.main-nav a.on {
  color: #fff; background: var(--grad);
  box-shadow: 0 6px 18px rgba(168, 85, 247, .4);
}
.header-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* 全站搜索框 */
.search-box {
  display: flex; align-items: center; gap: 4px;
  background: rgba(250, 243, 255, .9); border: 1px solid var(--border-strong);
  border-radius: 999px; padding: 4px 5px 4px 14px; transition: all .25s; width: 230px; flex-shrink: 0;
}
.search-box:hover { border-color: rgba(168, 85, 247, .5); }
.search-box:focus-within {
  border-color: var(--purple); background: #fff;
  box-shadow: 0 0 0 4px rgba(168, 85, 247, .16);
}
.search-box .sb-icon { color: var(--text-dim); display: flex; flex-shrink: 0; }
.search-box:focus-within .sb-icon { color: var(--purple); }
.search-box input { flex: 1; min-width: 0; padding: 7px 2px; border: none; outline: none;
  background: transparent; color: var(--text-bright); font-size: 13px; font-family: inherit; }
.search-box input::placeholder { color: #c4aee0; }
.search-box button { flex-shrink: 0; width: 32px; height: 32px; border: none; cursor: pointer;
  border-radius: 50%; background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: center; transition: .2s;
  box-shadow: 0 3px 12px rgba(168, 85, 247, .4); }
.search-box button:hover { filter: brightness(1.08); transform: scale(1.06); }
@media (max-width: 1080px) { .search-box { width: 170px; } }

.btn-member { padding: 8px 18px; border-radius: 999px; font-size: 14px; color: var(--purple);
  border: 1px solid rgba(168, 85, 247, .4); background: rgba(168, 85, 247, .06);
  transition: all .2s; white-space: nowrap; }
.btn-member:hover { border-color: var(--purple); box-shadow: 0 0 16px rgba(168, 85, 247, .25); }
.btn-member.vip { background: var(--grad); color: #fff; border-color: transparent;
  box-shadow: 0 4px 18px rgba(168, 85, 247, .4); }
.btn-member.vip:hover { filter: brightness(1.08); color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer;
  padding: 8px; background: rgba(168, 85, 247, .1); border-radius: 10px; border: 1px solid var(--border-strong); }
.nav-toggle span { width: 22px; height: 2px; background: var(--text-bright); border-radius: 2px; transition: .25s; }

@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; gap: 10px; }
  .nav-toggle { display: flex; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    align-items: stretch; gap: 2px; background: rgba(255, 255, 255, .98);
    border-bottom: 1px solid var(--border); padding: 12px 20px 16px; display: none;
    box-shadow: 0 18px 30px rgba(120, 50, 200, .12); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 14px; }
  .header-right { margin-left: 0; order: 5; width: 100%; }
  .header-right .btn-member { font-size: 13px; padding: 7px 12px; }
  .search-box { flex: 1; width: auto; }
  .logo { font-size: 20px; }
}

/* ---------------- 轮播（居中，梦幻渐变） ---------------- */
.banner { position: relative; margin: 26px auto 34px; }
.banner-inner { position: relative; width: 100%; height: 380px; overflow: hidden;
  border-radius: 24px; border: 1px solid var(--border);
  box-shadow: 0 18px 44px rgba(168, 85, 247, .22); }
.banner-item { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease;
  background: linear-gradient(135deg, #fce7f3, #ede9fe 55%, #e0e7ff);
  display: flex; align-items: center; justify-content: center; overflow: hidden; }
.banner-item.active { opacity: 1; }
.banner-item img { width: 100%; height: 100%; object-fit: cover; }
.banner-item .banner-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(circle at 25% 30%, rgba(236, 72, 153, .3), transparent 55%),
    radial-gradient(circle at 75% 65%, rgba(99, 102, 241, .28), transparent 50%),
    radial-gradient(circle at 55% 20%, rgba(168, 85, 247, .25), transparent 45%),
    linear-gradient(135deg, #fce7f3, #ede9fe 55%, #e0e7ff);
}
/* 二次元星星点缀 */
.banner-item .banner-bg::before, .banner-item .banner-bg::after {
  content: ''; position: absolute; background: rgba(255, 255, 255, .9); border-radius: 50%;
  box-shadow: 0 0 12px rgba(255, 255, 255, .9); animation: twinkle 3s ease-in-out infinite;
}
.banner-item .banner-bg::before { width: 8px; height: 8px; top: 22%; left: 16%; }
.banner-item .banner-bg::after { width: 6px; height: 6px; bottom: 28%; right: 18%; animation-delay: 1.2s; }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.banner-item .banner-grid { position: absolute; inset: 0; z-index: 1; opacity: .25;
  background-image:
    linear-gradient(rgba(168, 85, 247, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, .12) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at center, #000 30%, transparent 75%); }
.banner-content { position: relative; z-index: 2; width: 100%; max-width: 720px; padding: 30px; text-align: center; }
.banner-content h3 { font-size: 36px; color: var(--text-bright); margin-bottom: 12px; letter-spacing: 2px; }
.banner-content p { font-size: 17px; color: #7a67a3; margin-bottom: 20px; }
.banner-content .banner-btn { display: inline-block; padding: 11px 32px; border-radius: 999px; color: #fff;
  background: var(--grad); font-size: 15px; box-shadow: 0 8px 24px rgba(168, 85, 247, .4); transition: .25s; }
.banner-content .banner-btn:hover { transform: translateY(-2px) scale(1.03); filter: brightness(1.06); }
.banner-dots { position: absolute; bottom: 16px; left: 0; right: 0; z-index: 3;
  display: flex; justify-content: center; gap: 8px; }
.banner-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(168, 85, 247, .35);
  cursor: pointer; transition: .3s; }
.banner-dots i.on { background: var(--grad); box-shadow: 0 0 12px rgba(236, 72, 153, .7); width: 26px; border-radius: 6px; }

@media (max-width: 900px) {
  .banner { padding: 18px 0 24px; }
  .banner-inner { height: 220px; border-radius: 18px; }
  .banner-content { padding: 0 48px; }
  .banner-content h3 { font-size: 24px; }
  .banner-content p { font-size: 13px; }
}
@media (max-width: 480px) {
  .banner-inner { height: 180px; }
  .banner-content { padding: 0 40px; }
  .banner-content h3 { font-size: 20px; }
}

/* ---------------- 区块标题 ---------------- */
.sec { margin-bottom: 40px; }
.sec-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.sec-head .bar { width: 26px; height: 26px; border-radius: 50%; background: var(--grad);
  position: relative; box-shadow: 0 0 16px rgba(236, 72, 153, .45); flex-shrink: 0; }
.sec-head .bar::after { content: '✦'; position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: center; color: #fff; font-size: 12px; }
.sec-head h2 { font-size: 22px; color: var(--text-bright); letter-spacing: 1px; }
.sec-head .more { margin-left: auto; font-size: 13px; color: var(--text-dim); transition: .2s; }
.sec-head .more:hover { color: var(--purple); }

/* ---------------- 卡片网格 ---------------- */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1024px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .card-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 480px) { .card-grid { grid-template-columns: 1fr; } }

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: all .25s; position: relative; display: flex; flex-direction: column;
  box-shadow: 0 4px 14px rgba(168, 85, 247, .08); }
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad); opacity: 0; transition: opacity .25s; z-index: 2; }
.card:hover { transform: translateY(-5px); border-color: rgba(168, 85, 247, .4); box-shadow: var(--glow); }
.card:hover::before { opacity: 1; }
.card-cover { height: 168px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #fce7f3, #ede9fe); }
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-cover img { transform: scale(1.06); }
.card-cover .tag { position: absolute; top: 10px; left: 10px; z-index: 2;
  font-size: 12px; padding: 3px 12px; border-radius: 999px; color: #fff; }
.tag-recommend { background: linear-gradient(135deg, #f59e0b, #f43f5e); box-shadow: 0 0 12px rgba(244, 63, 94, .45); }
.tag-vip { background: var(--grad); box-shadow: 0 0 12px rgba(168, 85, 247, .45); }
.tag-pay { background: linear-gradient(135deg, #fbbf24, #fb923c); box-shadow: 0 0 12px rgba(251, 146, 60, .45); }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 16px; color: var(--text-bright); margin-bottom: 8px;
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  min-height: 46px; }
.card-body h3:hover { color: var(--purple); }
.card-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--text-dim); margin-bottom: 10px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.card-foot .cat { font-size: 12px; color: var(--purple); background: rgba(168, 85, 247, .1);
  padding: 2px 12px; border-radius: 999px; }
.card-foot .dl { font-size: 12px; color: var(--text-dim); }
.card-foot .dl b { color: var(--pink); }

.card.txt .card-cover { height: 96px;
  background: linear-gradient(135deg, rgba(236, 72, 153, .12), rgba(99, 102, 241, .1)); }
.card.txt .card-cover .txt-mark { position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; font-size: 30px; color: rgba(168, 85, 247, .5); letter-spacing: 4px; }

/* ---------------- 最新更新 ---------------- */
.update-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 760px) { .update-list { grid-template-columns: 1fr; } }
.update-item { display: flex; align-items: center; gap: 14px; padding: 13px 16px;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px; transition: .2s;
  box-shadow: 0 4px 14px rgba(168, 85, 247, .08); }
.update-item:hover { border-color: rgba(168, 85, 247, .4); box-shadow: var(--glow); transform: translateX(4px); }
.update-item .u-time { flex-shrink: 0; text-align: center; padding: 6px 12px; border-radius: 12px;
  background: var(--grad-soft); border: 1px solid var(--border-strong);
  font-size: 12px; color: var(--text-dim); line-height: 1.4; }
.update-item .u-time b { display: block; font-size: 15px; color: var(--purple); }
.update-item .u-body { flex: 1; overflow: hidden; }
.update-item .u-body h3 { font-size: 15px; color: var(--text-bright);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.update-item .u-body h3:hover { color: var(--purple); }
.update-item .u-body .u-meta { font-size: 12px; color: var(--text-dim); }
.update-item .u-badge { flex-shrink: 0; font-size: 12px; padding: 3px 12px; border-radius: 999px;
  background: rgba(14, 165, 233, .1); color: #0ea5e9; border: 1px solid rgba(14, 165, 233, .3); }
.update-item .u-badge.vip { background: rgba(168, 85, 247, .12); color: var(--purple); border-color: rgba(168, 85, 247, .35); }
.update-item .u-badge.pay { background: rgba(251, 146, 60, .12); color: #f97316; border-color: rgba(251, 146, 60, .35); }

/* ---------------- 页脚（二次元深紫星空） ---------------- */
.site-footer { margin-top: 50px; position: relative;
  background: linear-gradient(170deg, #241047, #1b0f33 60%, #150b29); color: #b9a6dd; }
.site-footer::before { content: '✦ ✧ ✦ ✧ ✦'; position: absolute; top: 14px; left: 0; right: 0;
  text-align: center; font-size: 14px; color: rgba(255, 255, 255, .14); letter-spacing: 26px; pointer-events: none; }
.footer-inner { display: grid; grid-template-columns: 1fr; gap: 30px; padding: 48px 0 30px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.footer-col p, .footer-col a { font-size: 13px; color: #b9a6dd; line-height: 2.2; }
.footer-col a:hover { color: #f0a6ff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px; }
.fl-item { display: inline-flex; align-items: center; justify-content: center;
  min-height: 36px; padding: 5px 14px; border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px; background: rgba(255, 255, 255, .06); transition: .2s; }
.fl-item:hover { border-color: #e879f9; transform: translateY(-1px); background: rgba(255, 255, 255, .1); }
.fl-item img { max-height: 28px; max-width: 110px; object-fit: contain; }
.fl-name { font-size: 12px; color: #d9c9f2; }
.fl-item:hover .fl-name { color: #f0a6ff; }
.fl-empty { font-size: 13px; color: #8a76b5; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 16px 0; text-align: center;
  font-size: 13px; color: #9a87c4; }
.footer-bottom a { color: #f0a6ff; }
.safe-badges { display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 10px; margin-top: 14px; }
.sb-tip { font-size: 12px; color: #9a87c4; margin-right: 4px; }
.sb-item { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px;
  border-radius: 999px; font-size: 12px; color: #d9c9f2;
  border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); transition: .2s; }
.sb-item svg { width: 14px; height: 14px; color: #f0a6ff; flex-shrink: 0; }
.sb-item:hover { border-color: #e879f9; color: #fff; box-shadow: 0 0 14px rgba(232, 121, 249, .4); }

/* ---------------- 页面内部 ---------------- */
.page-banner { padding: 40px 0 8px; }
.page-banner h1 { font-size: 28px; color: var(--text-bright); letter-spacing: 1px;
  display: flex; align-items: center; gap: 12px; }
.page-banner h1 .pb-icon { width: 8px; height: 32px; border-radius: 8px; background: var(--grad);
  box-shadow: 0 0 16px rgba(236, 72, 153, .45); }
.crumb { font-size: 13px; color: var(--text-dim); margin: 12px 0 26px; }
.crumb a:hover { color: var(--purple); }
.crumb i { margin: 0 8px; color: #cdb8ea; }

.pager { display: flex; justify-content: center; gap: 8px; margin: 30px 0 10px; }
.pager a, .pager span { min-width: 38px; height: 38px; padding: 0 12px; display: inline-flex;
  align-items: center; justify-content: center; border-radius: 12px; font-size: 14px;
  background: var(--card); border: 1px solid var(--border); color: var(--text); transition: .2s; }
.pager a:hover { border-color: var(--purple); color: var(--purple); }
.pager .cur { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 0 14px rgba(168, 85, 247, .4); }

.detail-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 24px; margin-top: 24px; }
@media (max-width: 900px) { .detail-wrap { grid-template-columns: 1fr; } }
.detail-main, .side-panel { background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px; box-shadow: 0 4px 14px rgba(168, 85, 247, .08); }
.detail-title { font-size: 26px; color: var(--text-bright); margin-bottom: 14px; line-height: 1.5; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: var(--text-dim);
  padding-bottom: 16px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.detail-meta b { color: var(--purple); font-weight: normal; }
.detail-cover { border-radius: 14px; overflow: hidden; margin-bottom: 20px; border: 1px solid var(--border); }
.detail-content { font-size: 15px; line-height: 2; color: var(--text); word-break: break-word; }
.detail-content p { margin-bottom: 14px; }
.detail-content img { border-radius: 10px; margin: 10px 0; }
.detail-content h3, .detail-content h4 { color: var(--text-bright); margin: 16px 0 10px; }
.detail-content code { background: rgba(168, 85, 247, .1); padding: 2px 8px; border-radius: 6px; color: #9333ea; font-size: 13px; }
.detail-content pre { background: #1b0f33; border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px;
  padding: 16px; overflow-x: auto; margin: 12px 0; color: #e0d0fa; }
.detail-content pre code { background: none; padding: 0; color: #c4b5fd; }
.detail-content a { color: var(--purple); border-bottom: 1px dashed rgba(168, 85, 247, .5); }

.dl-panel { text-align: center; padding: 26px 20px; }
.dl-panel .dl-price { font-size: 14px; color: var(--text-dim); margin-bottom: 18px; }
.dl-panel .dl-price b { font-size: 28px; color: #ea580c; margin: 0 4px; }
.dl-btn { display: block; padding: 14px; border-radius: 14px; font-size: 16px; font-weight: bold;
  color: #fff; background: var(--grad); box-shadow: 0 8px 24px rgba(168, 85, 247, .35);
  transition: .25s; border: none; cursor: pointer; width: 100%; }
.dl-btn:hover { filter: brightness(1.06); transform: translateY(-2px); }
.dl-btn.ghost { background: rgba(168, 85, 247, .1); color: var(--purple);
  border: 1px solid rgba(168, 85, 247, .4); box-shadow: none; }
.dl-btn.ghost:hover { border-color: var(--purple); color: var(--purple); }
.dl-tip { font-size: 12px; color: var(--text-dim); margin-top: 12px; line-height: 1.8; }
.dl-info { font-size: 13px; color: var(--text-dim); margin-top: 14px; text-align: left;
  border-top: 1px dashed var(--border); padding-top: 12px; line-height: 2; }
.dl-info b { color: var(--text-bright); font-weight: normal; }

.side-title { font-size: 16px; color: var(--text-bright); margin-bottom: 14px;
  padding-left: 12px; border-left: 4px solid var(--grad); border-radius: 2px; }
.side-list li { padding: 10px 0; border-bottom: 1px dashed var(--border); }
.side-list li:last-child { border-bottom: none; }
.side-list a { font-size: 14px; color: var(--text); transition: .2s;
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-list a:hover { color: var(--purple); padding-left: 4px; }
.side-list .t { font-size: 12px; color: var(--text-dim); }

.empty { text-align: center; padding: 60px 20px; color: var(--text-dim); font-size: 14px; }
.empty .e-icon { font-size: 40px; margin-bottom: 10px; opacity: .6; }

/* ---------------- 会员中心 ---------------- */
.auth-box { max-width: 420px; margin: 40px auto; }
.auth-card { background: var(--card); border: 1px solid var(--border); border-radius: 22px;
  padding: 30px; box-shadow: 0 16px 44px rgba(168, 85, 247, .16); }
.auth-card h2 { color: var(--text-bright); font-size: 20px; margin-bottom: 22px; text-align: center; }
.auth-tabs { display: flex; background: var(--grad-soft); border: 1px solid var(--border-strong);
  border-radius: 999px; padding: 5px; margin-bottom: 24px; }
.auth-tab { flex: 1; text-align: center; padding: 10px 0; border-radius: 999px; color: var(--text-dim);
  font-size: 15px; font-weight: bold; transition: .2s; }
.auth-tab.on { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(168, 85, 247, .35); }
.auth-pane { display: none; }
.auth-pane.show { display: block; animation: fadeUp .3s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.recharge-balance { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  padding: 14px 18px; margin: 10px 0 4px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(251, 191, 36, .16), rgba(168, 85, 247, .1));
  border: 1px solid rgba(251, 191, 36, .4); }
.recharge-balance span { font-size: 13px; color: var(--text-dim); }
.recharge-balance b { font-size: 26px; color: #d97706; }
.recharge-balance em { font-size: 12px; color: var(--text-dim); font-style: normal; }
.recharge-methods { margin-top: 12px; }
.recharge-empty { text-align: center; padding: 22px 16px; border: 1px dashed rgba(168, 85, 247, .4);
  border-radius: 14px; background: #fdf6ff; }
.recharge-empty svg { opacity: .8; }
.recharge-empty p { margin-top: 8px; font-size: 13px; color: var(--text-dim); line-height: 1.9; }
.recharge-steps { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.recharge-steps span { flex: 1; min-width: 120px; display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text-dim); padding: 8px 10px;
  background: var(--grad-soft); border: 1px solid var(--border); border-radius: 10px; }
.recharge-steps b { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%;
  background: var(--grad); color: #fff; font-size: 11px;
  display: flex; align-items: center; justify-content: center; }
.buy-card-tip { display: flex; align-items: center; gap: 6px; margin-top: 14px;
  padding: 10px 14px; background: rgba(168, 85, 247, .07);
  border: 1px dashed rgba(168, 85, 247, .45); border-radius: 12px;
  color: #7a67a3; font-size: 13px; line-height: 1.8; }

.vip-plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 16px; }
@media (max-width: 900px) { .vip-plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .vip-plans { grid-template-columns: 1fr; } }
.vip-plan { text-align: center; padding: 20px 12px 18px; border: 1px solid var(--border-strong);
  border-radius: 16px; background: linear-gradient(160deg, rgba(236, 72, 153, .08), rgba(99, 102, 241, .08));
  transition: .25s; position: relative; overflow: hidden; }
.vip-plan:hover { transform: translateY(-3px); border-color: var(--purple); box-shadow: 0 0 26px rgba(168, 85, 247, .22); }
.vp-name { font-size: 16px; color: var(--text-bright); font-weight: bold; letter-spacing: 1px; }
.vp-price { font-size: 24px; color: #d97706; margin: 8px 0 4px; font-weight: bold; }
.vp-desc { font-size: 11px; color: var(--text-dim); margin-bottom: 14px; }
.vp-btn { width: 100%; padding: 10px 0; border: none; border-radius: 999px; cursor: pointer;
  background: var(--grad); color: #fff; font-size: 14px; font-weight: bold; transition: .2s; }
.vp-btn:hover { filter: brightness(1.08); }

.form-item { margin-bottom: 16px; }
.form-item span { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 6px; }
.form-item input { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border-strong);
  background: #fdf8ff; color: var(--text-bright); font-size: 14px; outline: none; transition: .2s; }
.form-item input:focus { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(168, 85, 247, .14);
  background: #fff; }
.btn-submit { width: 100%; padding: 13px; border-radius: 999px; border: none; cursor: pointer;
  background: var(--grad); color: #fff; font-size: 15px; font-weight: bold;
  box-shadow: 0 8px 22px rgba(168, 85, 247, .35); transition: .25s; }
.btn-submit:hover { filter: brightness(1.06); }
.form-tip { text-align: center; font-size: 13px; color: var(--text-dim); margin-top: 14px; }
.form-tip a { color: var(--purple); }
.msg-tip { font-size: 13px; padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; display: none; }
.msg-tip.ok { display: block; background: rgba(16, 185, 129, .1); border: 1px solid rgba(16, 185, 129, .35); color: #059669; }
.msg-tip.err { display: block; background: rgba(239, 68, 68, .08); border: 1px solid rgba(239, 68, 68, .35); color: #dc2626; }

.member-card { background: var(--card); border: 1px solid var(--border); border-radius: 22px;
  padding: 30px; position: relative; overflow: hidden; box-shadow: 0 16px 44px rgba(168, 85, 247, .16); }
.member-card::before { content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 15%, rgba(236, 72, 153, .14), transparent 50%),
             radial-gradient(circle at 10% 90%, rgba(99, 102, 241, .14), transparent 50%);
  pointer-events: none; }
.member-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; position: relative; }
.member-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--grad);
  display: flex; align-items: center; justify-content: center; font-size: 26px; color: #fff;
  box-shadow: 0 0 24px rgba(236, 72, 153, .45); }
.member-name { font-size: 20px; color: var(--text-bright); }
.member-status { font-size: 12px; margin-top: 4px; }
.member-status.vip-on { color: #d97706; }
.member-status.vip-off { color: var(--text-dim); }
.member-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; position: relative; }
.member-stat { background: #fdf6ff; border: 1px solid var(--border); border-radius: 14px;
  padding: 16px; text-align: center; }
.member-stat b { display: block; font-size: 22px; color: var(--purple); }
.member-stat span { font-size: 12px; color: var(--text-dim); }
@media (max-width: 760px) { .member-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .member-stats { grid-template-columns: 1fr; } }

.card-open { background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  padding: 24px; margin-top: 20px; }
.card-open h3 { color: var(--text-bright); font-size: 17px; margin-bottom: 6px; }
.card-open .sub { font-size: 12px; color: var(--text-dim); margin-bottom: 14px; }
.card-open form { display: flex; gap: 10px; flex-wrap: wrap; }
.card-open input { flex: 1; min-width: 220px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--border-strong); background: #fdf8ff; color: var(--text-bright); font-size: 14px; outline: none; }
.card-open input:focus { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(168, 85, 247, .14); }
.buy-tip { margin-top: 14px; font-size: 13px; color: var(--text-dim); }
.buy-tip a { color: var(--purple); font-weight: bold; }

/* ---------------- 客服悬浮窗 ---------------- */
.chat-float { position: fixed; right: 22px; bottom: 24px; z-index: 999;
  width: 58px; height: 58px; border-radius: 50%; cursor: pointer;
  background: var(--grad); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px rgba(236, 72, 153, .5); transition: .25s; }
.chat-float:hover { transform: scale(1.1) rotate(6deg); }
.chat-float::after { content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid rgba(236, 72, 153, .6); animation: chatPulse 2s infinite; }
@keyframes chatPulse { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
.chat-float svg { width: 28px; height: 28px; fill: #fff; position: relative; z-index: 1; }
.chat-float .chat-badge { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px;
  padding: 0 5px; border-radius: 10px; background: #ef4444; color: #fff; font-size: 11px;
  line-height: 20px; text-align: center; display: none; z-index: 2; box-shadow: 0 0 10px rgba(239, 68, 68, .5); }
.chat-float .chat-badge.show { display: block; }

.chat-window { position: fixed; right: 22px; bottom: 94px; z-index: 998;
  width: 350px; height: 500px; max-height: calc(100vh - 130px);
  background: #fff; border: 1px solid var(--border-strong); border-radius: 20px;
  display: none; flex-direction: column; overflow: hidden;
  box-shadow: 0 22px 60px rgba(120, 50, 200, .3); }
.chat-window.open { display: flex; }
.chat-head { padding: 14px 16px; background: var(--grad);
  border-bottom: none; display: flex; align-items: center; gap: 10px; color: #fff; }
.chat-head .ch-ava { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .25);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 16px; flex-shrink: 0; }
.chat-head .ch-name { font-size: 15px; color: #fff; font-weight: bold; }
.chat-head .ch-status { font-size: 12px; color: #d8ffe3; }
.chat-head .ch-status.off { color: rgba(255, 255, 255, .75); }
.chat-head .ch-close { margin-left: auto; cursor: pointer; color: rgba(255, 255, 255, .85);
  font-size: 20px; padding: 4px 8px; border-radius: 8px; }
.chat-head .ch-close:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.chat-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px;
  background: linear-gradient(180deg, #fdf6ff, #f3f0ff); }
.chat-msg { max-width: 82%; padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.6;
  word-break: break-word; position: relative; animation: msgIn .25s ease; }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.chat-msg.user { align-self: flex-end; background: var(--grad); color: #fff;
  border-bottom-right-radius: 4px; box-shadow: 0 6px 16px rgba(168, 85, 247, .3); }
.chat-msg.admin { align-self: flex-start; background: #fff; border: 1px solid var(--border);
  border-bottom-left-radius: 4px; }
.chat-msg.sys { align-self: center; background: rgba(251, 191, 36, .12); border: 1px solid rgba(251, 191, 36, .35);
  color: #b45309; font-size: 12px; }
.chat-msg .cm-time { font-size: 10px; opacity: .6; margin-top: 4px; text-align: right; }
.chat-input-bar { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border);
  background: #fff; }
.chat-input-bar textarea { flex: 1; resize: none; height: 44px; max-height: 90px; padding: 10px 12px;
  border-radius: 12px; border: 1px solid var(--border-strong); background: #fdf8ff;
  color: var(--text-bright); font-size: 14px; font-family: inherit; outline: none; }
.chat-input-bar textarea:focus { border-color: var(--purple); background: #fff; }
.chat-send { width: 60px; border: none; border-radius: 999px; cursor: pointer; background: var(--grad);
  color: #fff; font-size: 14px; font-weight: bold; transition: .2s; }
.chat-send:hover { filter: brightness(1.08); }
.chat-welcome { text-align: center; font-size: 12px; color: var(--text-dim); padding: 4px 0 8px; }
.chat-ended { text-align: center; padding: 14px 12px; margin-bottom: 8px;
  background: rgba(239, 68, 68, .06); border: 1px solid rgba(239, 68, 68, .35);
  border-radius: 12px; }
.chat-ended .ce-txt { font-size: 13px; color: #dc2626; margin-bottom: 10px; }
.chat-ended .ce-tip { font-size: 12px; color: var(--text-dim); line-height: 1.8; }
.ce-btn { padding: 8px 22px; border-radius: 999px; border: none; cursor: pointer;
  background: var(--grad); color: #fff; font-size: 13px; font-weight: bold; transition: .2s; }
.ce-btn:hover { filter: brightness(1.08); }

@media (max-width: 560px) {
  .chat-window { left: 10px; right: 10px; bottom: 84px; width: auto; height: calc(100vh - 120px); max-height: none; }
  .chat-float { right: 14px; bottom: 14px; }
}

/* ---------------- 提示 ---------------- */
.toast { position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateY(-80px);
  background: #fff; border: 1px solid var(--border-strong); color: var(--text-bright);
  padding: 11px 22px; border-radius: 999px; font-size: 14px; z-index: 9999; transition: .35s;
  box-shadow: 0 12px 34px rgba(120, 50, 200, .25); }
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.ok { border-color: rgba(16, 185, 129, .5); color: #059669; }
.toast.err { border-color: rgba(239, 68, 68, .5); color: #dc2626; }
