*{margin:0;padding:0;box-sizing:border-box}
body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;background:#0a0a12;color:#f0f0f5;min-height:100vh}
.bg{position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:0}
.orb{position:absolute;border-radius:50%;filter:blur(60px);opacity:.25}
.orb:nth-child(1){width:300px;height:300px;background:#ff6b9d;top:-5%;left:-10%}
.orb:nth-child(2){width:250px;height:250px;background:#a855f7;top:30%;right:-10%}
.orb:nth-child(3){width:280px;height:280px;background:#00d4ff;bottom:-10%;left:20%}
.wrap{position:relative;z-index:1;max-width:520px;margin:0 auto;padding:48px 20px 32px}
.brand{text-align:center;margin-bottom:18px}
h1{font-size:32px;font-weight:900;margin-bottom:6px}
.slogan{color:#8a8a9a;font-size:14px}
.card{background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.06);border-radius:18px;padding:24px;margin-bottom:16px}
.question-field{margin-bottom:12px}
.question-field label{display:block;font-size:11px;color:#8a8a9a;margin-bottom:5px;font-weight:500}
.question-field textarea{width:100%;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);border-radius:10px;padding:12px;color:#f0f0f5;font-size:14px;outline:none;font-family:inherit;resize:none;min-height:70px;line-height:1.6}
.question-field textarea:focus{border-color:#a855f7;background:rgba(255,255,255,.07)}
.hint{font-size:12px;color:#8a8a9a;margin-bottom:16px;padding:10px 14px;background:rgba(255,255,255,.02);border-radius:10px;border:1px solid rgba(255,255,255,.05);line-height:1.5}
.hint strong{color:#00d4ff}
.num-row{display:flex;gap:8px;align-items:flex-end;margin-bottom:16px}
.num-row .field{flex:1;min-width:0}
.num-row .btn-rand{flex-shrink:0;padding:10px 14px;border:none;border-radius:10px;font-size:14px;font-weight:700;color:#fff;cursor:pointer;font-family:inherit;background:linear-gradient(135deg,#00d4ff,#a855f7)}
.field label{display:block;font-size:11px;color:#8a8a9a;margin-bottom:5px;font-weight:500}
.field input{width:100%;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);border-radius:10px;padding:10px 12px;color:#f0f0f5;font-size:14px;outline:none;font-family:inherit}
.field input:focus{border-color:#a855f7;background:rgba(255,255,255,.07)}
.field input::-webkit-outer-spin-button,.field input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.field input[type=number]{-moz-appearance:textfield}
.btn{width:100%;padding:13px;border:none;border-radius:12px;font-size:15px;font-weight:700;color:#fff;cursor:pointer;font-family:inherit}
.btn-draw{background:linear-gradient(135deg,#ff6b9d,#a855f7)}
.btn-draw:disabled{background:#555;cursor:not-allowed;opacity:0.6}
.digits{display:flex;gap:10px;justify-content:center;margin-bottom:20px}
.digit{flex:1;text-align:center;padding:20px 10px;background:rgba(255,255,255,.03);border-radius:14px;border:1px solid rgba(255,255,255,.06)}
.digit-num{font-size:32px;font-weight:900;line-height:1;margin-bottom:6px}
.digit:nth-child(1) .digit-num{color:#ff6b9d}
.digit:nth-child(2) .digit-num{color:#00d4ff}
.digit:nth-child(3) .digit-num{color:#a855f7}
.digit-label{font-size:11px;color:#8a8a9a}
.result-name{text-align:center;font-size:20px;font-weight:700;margin-bottom:10px}
.result-text{color:#c0c0d0;font-size:14px;line-height:1.8}
.result-text h1,.result-text h2,.result-text h3{color:#f0f0f5;font-weight:700;margin:18px 0 8px}
.result-text h2{font-size:16px;border-bottom:1px solid rgba(255,255,255,.08);padding-bottom:6px}
.result-text h3{font-size:14px;color:#d0d0e0}
.result-text p{margin:0 0 10px}
.result-text ul,.result-text ol{margin:8px 0;padding-left:20px}
.result-text li{margin-bottom:4px}
.result-text strong{color:#f0f0f5;font-weight:600}
.result-text hr{border:none;border-top:1px solid rgba(255,255,255,.08);margin:14px 0}
.result-text em{color:#a0a0b0;font-style:italic}
.result-text table{width:100%;border-collapse:collapse;margin:10px 0;font-size:13px}
.result-text td,.result-text th{padding:6px 8px;border:1px solid rgba(255,255,255,.08);text-align:left}
.result-text th{background:rgba(255,255,255,.04);color:#d0d0e0}
.notice{margin-top:20px;padding:14px 18px;border-radius:12px;background:rgba(255,255,255,.02);border:1px solid rgba(255,255,255,.05);font-size:12px;color:#8a8a9a;line-height:1.6}
.notice strong{color:#f0f0f5;font-weight:600}
.hidden{display:none}
.divination-loading{text-align:center;padding:28px 10px}
.loading-ring{width:64px;height:64px;border-radius:50%;margin:0 auto 18px;position:relative;background:conic-gradient(from 0deg,#ff6b9d,#a855f7,#00d4ff,#ff6b9d);animation:spin 1.6s linear infinite;display:flex;align-items:center;justify-content:center}
.loading-ring::before{content:'';position:absolute;inset:3px;border-radius:50%;background:#0a0a12}
.loading-core{position:relative;z-index:1;font-size:22px;font-weight:900;background:linear-gradient(135deg,#ff6b9d,#a855f7,#00d4ff);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.loading-pulses{display:flex;gap:10px;justify-content:center;margin-bottom:16px}
.loading-pulses span{width:10px;height:10px;border-radius:50%;display:inline-block;animation:pulse 1.4s ease-in-out infinite}
.loading-pulses span:nth-child(1){background:#ff6b9d;animation-delay:0s}
.loading-pulses span:nth-child(2){background:#00d4ff;animation-delay:.2s}
.loading-pulses span:nth-child(3){background:#a855f7;animation-delay:.4s}
.loading-text{font-size:14px;color:#8a8a9a;background:linear-gradient(90deg,#8a8a9a 30%,#f0f0f5 50%,#8a8a9a 70%);background-size:200% auto;-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;animation:shimmer 2.5s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes pulse{0%,80%,100%{transform:scale(.6);opacity:.4}40%{transform:scale(1);opacity:1}}
@keyframes shimmer{to{background-position:200% center}}
@media(max-width:480px){h1{font-size:28px}.digit-num{font-size:26px}.num-row .btn-rand{padding:10px 10px;font-size:13px}}

/* 限制词弹窗 */
.modal-overlay{position:fixed;inset:0;z-index:100;display:none;align-items:center;justify-content:center;background:rgba(10,10,18,.85);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);padding:20px}
.modal-overlay.active{display:flex}
.modal-box{width:100%;max-width:360px;background:rgba(20,20,32,.95);border:1px solid rgba(255,255,255,.08);border-radius:20px;padding:32px 28px 28px;text-align:center;box-shadow:0 24px 64px rgba(0,0,0,.5);animation:modalIn .3s ease-out}
.modal-icon{width:56px;height:56px;margin:0 auto 18px;border-radius:50%;background:rgba(255,77,109,.12);border:1px solid rgba(255,77,109,.25);display:flex;align-items:center;justify-content:center;font-size:26px}
.modal-text{font-size:16px;font-weight:600;color:#ff4d6d;line-height:1.6;margin-bottom:24px}
.modal-btn{width:100%;padding:12px;border:none;border-radius:12px;font-size:15px;font-weight:700;color:#fff;cursor:pointer;font-family:inherit;background:linear-gradient(135deg,#ff6b9d,#a855f7);transition:transform .15s ease,box-shadow .15s ease}
.modal-btn:hover{transform:translateY(-1px);box-shadow:0 8px 24px rgba(168,85,247,.35)}
.modal-btn:active{transform:translateY(0)}
@keyframes modalIn{from{opacity:0;transform:scale(.92) translateY(10px)}to{opacity:1;transform:scale(1) translateY(0)}}

/* 历史记录弹窗 */
.modal-history{width:100%;max-width:600px;max-height:85vh;display:flex;flex-direction:column;padding:0;overflow:hidden}
.history-modal-overlay{position:fixed;inset:0;z-index:200;display:none;align-items:center;justify-content:center;background:rgba(10,10,18,.85);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);padding:20px}
.history-modal-overlay.active{display:flex}
.history-header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid rgba(255,255,255,.08)}
.history-header h2{font-size:18px;font-weight:700;color:#f0f0f5}
.history-close{width:32px;height:32px;border-radius:50%;border:none;background:rgba(255,255,255,.06);color:#8a8a9a;font-size:16px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s;font-family:inherit}
.history-close:hover{background:rgba(255,255,255,.12);color:#f0f0f5}
.history-body{flex:1;overflow-y:auto;padding:16px 20px}
.history-body::-webkit-scrollbar{width:4px}
.history-body::-webkit-scrollbar-thumb{background:rgba(255,255,255,.15);border-radius:4px}

/* 历史记录条目 */
.h-item{background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.06);border-radius:14px;padding:16px;margin-bottom:12px;transition:all .2s}
.h-item:hover{background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.1)}
.h-meta{display:flex;align-items:center;gap:10px;margin-bottom:10px;flex-wrap:wrap}
.h-time{font-size:12px;color:#6a6a7a}
.h-question{font-size:14px;font-weight:600;color:#f0f0f5;flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.h-palaces{display:flex;gap:8px;margin-bottom:10px}
.h-palace{flex:1;text-align:center;padding:10px 6px;background:rgba(255,255,255,.04);border-radius:10px;border:1px solid rgba(255,255,255,.06)}
.h-palace-label{font-size:10px;color:#8a8a9a;margin-bottom:4px}
.h-palace-name{font-size:16px;font-weight:700}
.h-palace:nth-child(1) .h-palace-name{color:#ff6b9d}
.h-palace:nth-child(2) .h-palace-name{color:#00d4ff}
.h-palace:nth-child(3) .h-palace-name{color:#a855f7}
.h-nums{display:flex;justify-content:center;gap:16px;font-size:12px;color:#6a6a7a;margin-bottom:10px}
.h-nums span{display:inline-flex;align-items:center;gap:4px}
.h-nums b{color:#d0d0e0;font-weight:600}
.h-result-toggle{width:100%;padding:10px;border:none;border-radius:10px;background:rgba(255,255,255,.05);color:#8a8a9a;font-size:13px;cursor:pointer;font-family:inherit;transition:all .2s;display:flex;align-items:center;justify-content:center;gap:6px}
.h-result-toggle:hover{background:rgba(255,255,255,.08);color:#f0f0f5}
.h-result-toggle .arrow{transition:transform .25s ease;font-size:11px}
.h-result-toggle.expanded .arrow{transform:rotate(180deg)}
.h-result{display:none;margin-top:12px;padding:14px;background:rgba(255,255,255,.03);border-radius:10px;border:1px solid rgba(255,255,255,.06);font-size:13px;line-height:1.8;color:#c0c0d0;max-height:300px;overflow-y:auto}
.h-result.expanded{display:block}
.h-result::-webkit-scrollbar{width:3px}
.h-result::-webkit-scrollbar-thumb{background:rgba(255,255,255,.12);border-radius:3px}
.h-result h1,.h-result h2,.h-result h3{color:#f0f0f5;font-weight:700;margin:14px 0 6px}
.h-result h2{font-size:15px;border-bottom:1px solid rgba(255,255,255,.08);padding-bottom:5px}
.h-result h3{font-size:13px;color:#d0d0e0}
.h-result p{margin:0 0 8px}
.h-result ul,.h-result ol{margin:6px 0;padding-left:18px}
.h-result li{margin-bottom:3px}
.h-result strong{color:#f0f0f5;font-weight:600}
.h-result table{width:100%;border-collapse:collapse;margin:8px 0;font-size:12px}
.h-result td,.h-result th{padding:5px 7px;border:1px solid rgba(255,255,255,.08);text-align:left}
.h-result th{background:rgba(255,255,255,.04);color:#d0d0e0}
.h-empty{text-align:center;padding:48px 20px;color:#6a6a7a;font-size:14px}
.h-empty-icon{font-size:36px;margin-bottom:12px;opacity:.5}
@media(max-width:480px){.modal-history{max-height:90vh;margin:0 10px}.history-body{padding:12px 14px}}

.paywall-wrap {
  position: relative;
  margin-top: 16px;
}

/* ===== 马赛克付费墙 ===== */
.paywall-section {
  position: relative;
  margin-top: 12px;
}
.paywall-blur { position: absolute; top: 0; left: 0; right: 0; bottom: 0; filter: blur(8px); user-select: none; pointer-events: none; transition: filter 0.5s ease; }
.paywall-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-start; justify-content: center; background: linear-gradient(180deg, rgba(10,10,18,0.3) 0%, rgba(10,10,18,0.8) 40%, rgba(10,10,18,0.98) 100%); padding: 30px 16px 20px; z-index: 10; }
.paywall-box {
  background: rgba(18, 18, 32, 0.98);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 16px;
  padding: 20px 16px;
  text-align: center;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  animation: paywallIn 0.4s ease-out;
}
.paywall-icon {
  font-size: 32px;
  margin-bottom: 8px;
}
.paywall-title {
  font-size: 16px;
  font-weight: 700;
  color: #f0f0f5;
  margin-bottom: 6px;
}
.paywall-price {
  font-size: 14px;
  color: #a855f7;
  font-weight: 600;
  margin-bottom: 16px;
}
.paywall-qrcode {
  margin-bottom: 8px;
}
.paywall-qr-img {
  max-width: 180px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.paywall-qr-hint {
  font-size: 12px;
  color: #8a8a9a;
  margin-top: 6px;
}
.paywall-or {
  font-size: 12px;
  color: #6a6a7a;
  margin: 10px 0;
  position: relative;
}
.paywall-or::before, .paywall-or::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 60px;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}
.paywall-or::before { right: 55%; }
.paywall-or::after { left: 55%; }
.btn-credits {
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: #f0f0f5;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.btn-credits:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(168, 85, 247, 0.3);
}
.paywall-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
}
.paywall-dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}
.paywall-user-credits {
  font-size: 12px;
  color: #6a6a7a;
}

/* 套餐卡片 */
.pw-packages { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.pw-pkg { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); cursor: pointer; transition: all 0.2s; }
.pw-pkg:hover, .pw-pkg.active { border-color: rgba(168,85,247,0.5); background: rgba(168,85,247,0.1); }
.pw-pkg-name { font-size: 13px; color: #e0e0f0; font-weight: 600; }
.pw-pkg-info { font-size: 11px; color: #8a8aaa; }
.pw-pkg-price { font-size: 15px; color: #a855f7; font-weight: 700; white-space: nowrap; }
.pw-single { margin-top: 8px; }
.pw-btn { width: 100%; padding: 12px; border: none; border-radius: 10px; background: linear-gradient(135deg, #7c3aed, #a855f7); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; transition: all 0.2s; margin-top: 12px; }
.pw-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(168,85,247,0.4); }

@keyframes paywallIn {
  from { opacity: 0; transform: scale(0.9) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
﻿.paywall-wrap {
  position: relative;
  margin-top: 16px;
}

/* 充值弹窗遮罩 */
.pay-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(10, 10, 18, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: modalIn .3s ease-out;
}

/* 充值弹窗卡片 */
.pay-modal-box {
    background: #12121e;
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 18px;
    padding: 24px 20px;
    text-align: center;
    max-width: 340px;
    width: 90%;
    animation: paywallIn .3s ease-out;
}

/* 充值套餐列表 */
.tu-pkg {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.2s;
}
.tu-pkg:hover {
    background: rgba(168, 85, 247, 0.07);
    border-color: rgba(168, 85, 247, 0.35);
}
.tu-pkg.active {
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.5);
}

/* 充值弹窗支付方式按钮 */
.pay-method-btn {
    transition: all 0.2s;
}



/* ===== vv修复：付费墙不重叠、字体跟正文一致 ===== */
.paywall-section{position:relative;margin-top:12px;color:#c0c0d0;font-size:14px;line-height:1.8;overflow:hidden;border-radius:12px;}
.paywall-section .paywall-blur{position:relative !important;top:auto !important;left:auto !important;right:auto !important;bottom:auto !important;color:#c0c0d0;font-size:14px;line-height:1.8;min-height:280px;padding-bottom:18px;}
.paywall-section .paywall-blur h1,.paywall-section .paywall-blur h2,.paywall-section .paywall-blur h3{color:#f0f0f5;font-weight:700;margin:18px 0 8px;}
.paywall-section .paywall-blur h2{font-size:16px;border-bottom:1px solid rgba(255,255,255,.08);padding-bottom:6px;}
.paywall-section .paywall-blur h3{font-size:14px;color:#d0d0e0;}
.paywall-section .paywall-blur p{margin:0 0 10px;}
.paywall-section .paywall-blur ul,.paywall-section .paywall-blur ol{margin:8px 0;padding-left:20px;}
.paywall-section .paywall-blur li{margin-bottom:4px;}
.paywall-section .paywall-blur strong{color:#f0f0f5;font-weight:600;}
.paywall-section .paywall-overlay{position:absolute;top:0;left:0;right:0;bottom:0;z-index:10;}
.paywall-section.unlocked{overflow:visible;}
.paywall-section.unlocked .paywall-blur{filter:none !important;user-select:auto !important;pointer-events:auto !important;min-height:0;}
.paywall-section.unlocked .paywall-overlay{display:none !important;}
.pw-pay-method.active{background:linear-gradient(135deg,#22c55e,#16a34a) !important;color:#fff !important;border-color:rgba(34,197,94,.75) !important;box-shadow:0 0 0 1px rgba(34,197,94,.25),0 8px 20px rgba(34,197,94,.18);}
.pw-pay-methods.hidden-for-credits{display:none !important;}
#resultNotice{display:block;margin-top:20px;}


/* vv修复：顶部灵签字体跟用户名一致 */
.credits-badge{font-size:13px !important;font-weight:600 !important;line-height:1.2 !important;padding:0 !important;background:transparent !important;border:none !important;color:#e0e0f0 !important;}
.user-bar .username{font-size:13px !important;font-weight:600 !important;line-height:1.2 !important;}


/* vv修复：联系管理员 */
.admin-contact{margin:14px auto 22px;text-align:center;font-size:12px;color:#8a8a9a;line-height:1.7;}
.admin-wechat{border:none;background:transparent;color:#a855f7;font-size:12px;font-weight:700;cursor:pointer;padding:0 2px;text-decoration:none;}


/* vv公益说明 */
.public-care-note{margin:18px auto 18px;max-width:620px;padding:14px 16px;border:1px solid rgba(168,85,247,.22);border-radius:14px;background:rgba(168,85,247,.06);color:#bfc0d4;font-size:12px;line-height:1.8;text-align:left;box-shadow:0 8px 28px rgba(0,0,0,.14)}
.public-care-title{color:#efeaff;font-size:13px;font-weight:700;margin-bottom:4px;text-align:center}
.public-care-text strong{color:#f4efff;font-weight:700}
@media(max-width:640px){.public-care-note{margin:16px 12px 16px;padding:12px 14px;font-size:12px}}
