/* ========== 全局重置 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  min-height: 100%;
  color: #fff;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: transparent;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; cursor: pointer; }
button { font-family: inherit; cursor: pointer; }

/* ========== 粒子背景 ========== */
#bgCanvas {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh; z-index: -1;
  background: radial-gradient(ellipse at top, #0a0a2e 0%, #050512 50%, #02020a 100%);
}

/* ========== 导航栏 ========== */
.navbar {
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(8, 8, 24, 0.7);
  border-bottom: 1px solid rgba(0, 240, 255, 0.25);
  box-shadow: 0 2px 20px rgba(0, 240, 255, 0.1);
  transition: all 0.3s ease;
}
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 1.5rem;
  height: 64px; display: flex; align-items: center; gap: 2rem;
}
.logo {
  font-size: 1.3rem; font-weight: 700; color: #00f0ff;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
  letter-spacing: 1px; white-space: nowrap; cursor: pointer;
}
.nav-menu { display: flex; gap: 1.8rem; }
.nav-link {
  color: #ccd; font-size: 0.95rem; transition: all 0.2s; position: relative;
}
.nav-link:hover { color: #00f0ff; text-shadow: 0 0 8px rgba(0, 240, 255, 0.5); }
.nav-right { margin-left: auto; display: flex; gap: 0.8rem; align-items: center; }
.user-info { color: #ccd; font-size: 0.9rem; }
.btn-nav {
  border: 1px solid #b026ff; background: rgba(176, 38, 255, 0.15);
  color: #fff; padding: 0.45rem 1rem; border-radius: 6px;
  font-size: 0.88rem; transition: all 0.25s; white-space: nowrap;
}
.btn-nav:hover {
  background: rgba(176, 38, 255, 0.35);
  box-shadow: 0 0 16px rgba(176, 38, 255, 0.5); transform: translateY(-1px);
}

/* ========== Banner ========== */
.banner-box {
  margin-top: 64px; min-height: 380px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  position: relative; overflow: hidden;
}
.banner-box::before {
  content: ''; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%); width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.banner-text { position: relative; z-index: 2; padding: 2rem; }
.cyber-title {
  font-size: 3.2rem; font-weight: 800; color: #00f0ff;
  text-shadow: 0 0 10px rgba(0,240,255,0.8), 0 0 30px rgba(0,240,255,0.4), 0 0 60px rgba(176,38,255,0.3);
  letter-spacing: 3px; margin-bottom: 1rem;
  animation: titleGlow 3s ease-in-out infinite alternate;
}
@keyframes titleGlow {
  from { text-shadow: 0 0 10px rgba(0,240,255,0.8), 0 0 30px rgba(0,240,255,0.4), 0 0 60px rgba(176,38,255,0.3); }
  to   { text-shadow: 0 0 15px rgba(176,38,255,0.8), 0 0 40px rgba(176,38,255,0.4), 0 0 70px rgba(0,240,255,0.3); }
}
.banner-sub { font-size: 1.15rem; color: #aab; letter-spacing: 4px; margin-bottom: 2rem; }
.banner-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  padding: 0.75rem 2rem; background: linear-gradient(135deg, #00f0ff, #b026ff);
  color: #000; font-weight: 700; border-radius: 8px; border: none;
  font-size: 1rem; transition: all 0.3s; box-shadow: 0 0 20px rgba(0,240,255,0.4);
  display: inline-block;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0,240,255,0.6), 0 0 50px rgba(176,38,255,0.3);
}
.btn-outline {
  padding: 0.75rem 2rem; background: transparent; color: #00f0ff;
  font-weight: 600; border-radius: 8px; border: 1px solid #00f0ff;
  font-size: 1rem; transition: all 0.3s;
}
.btn-outline:hover { background: rgba(0,240,255,0.1); box-shadow: 0 0 20px rgba(0,240,255,0.3); }

/* ========== 商品列表 ========== */
.goods-container { max-width: 1280px; margin: 1.5rem auto 3rem; padding: 0 1.5rem; }
.section-header { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.5rem; }
.section-title {
  font-size: 1.5rem; font-weight: 700; color: #fff;
  position: relative; padding-left: 14px;
}
.section-title::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 22px; background: linear-gradient(180deg, #00f0ff, #b026ff); border-radius: 2px;
}
.section-count { color: #778; font-size: 0.9rem; }
.goods-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.4rem;
}
.goods-card {
  background: rgba(12, 12, 30, 0.6); backdrop-filter: blur(10px);
  border: 1px solid rgba(176, 38, 255, 0.25); border-radius: 12px;
  overflow: hidden; transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  cursor: pointer; position: relative;
}
.goods-card:hover {
  transform: translateY(-6px); border-color: rgba(176, 38, 255, 0.7);
  box-shadow: 0 8px 30px rgba(176,38,255,0.25), 0 0 20px rgba(0,240,255,0.1);
}
.card-cover { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.card-cover-placeholder {
  width: 100%; aspect-ratio: 16/10;
  background: linear-gradient(135deg, #1a1a3e 0%, #0d0d24 50%, #1a0a2e 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: rgba(0,240,255,0.3);
}
.card-body { padding: 0.9rem 1rem 1rem; }
.card-title {
  font-size: 1rem; font-weight: 600; margin-bottom: 0.4rem; color: #fff;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.card-desc {
  font-size: 0.82rem; color: #99a; margin-bottom: 0.8rem; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-price { display: flex; gap: 0.6rem; align-items: center; margin-bottom: 0.8rem; }
.price-now { color: #00f0ff; font-weight: 700; font-size: 1.15rem; text-shadow: 0 0 8px rgba(0,240,255,0.4); }
.card-btn {
  width: 100%; padding: 0.5rem;
  background: linear-gradient(135deg, rgba(0,240,255,0.15), rgba(176,38,255,0.15));
  border: 1px solid rgba(0,240,255,0.4); color: #00f0ff; border-radius: 6px;
  font-size: 0.88rem; font-weight: 600; transition: all 0.25s;
}
.card-btn:hover {
  background: linear-gradient(135deg, #00f0ff, #b026ff); color: #000;
  box-shadow: 0 0 15px rgba(0,240,255,0.4);
}

/* ========== 弹窗 ========== */
.mask {
  position: fixed; inset: 0; background: rgba(0,0,0,0.78);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  z-index: 90; display: none; animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: min(92vw, 560px); background: rgba(10,10,28,0.95);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0,240,255,0.4); border-radius: 14px; z-index: 100;
  display: none; max-height: 88vh; overflow-y: auto; padding: 1.5rem;
  box-shadow: 0 0 40px rgba(0,240,255,0.2), 0 0 80px rgba(176,38,255,0.1);
  animation: modalIn 0.25s cubic-bezier(0.4,0,0.2,1);
}
@keyframes modalIn {
  from { opacity: 0; transform: translate(-50%,-48%) scale(0.96); }
  to   { opacity: 1; transform: translate(-50%,-50%) scale(1); }
}
.modal::-webkit-scrollbar { width: 5px; }
.modal::-webkit-scrollbar-thumb { background: #00f0ff44; border-radius: 3px; }
.modal-close {
  position: absolute; top: 10px; right: 16px; font-size: 1.8rem;
  color: #889; cursor: pointer; transition: all 0.2s; line-height: 1; z-index: 10;
}
.modal-close:hover { color: #ff2e9c; transform: rotate(90deg); }
.modal-body img {
  width: 100%; border-radius: 8px; margin-bottom: 1rem;
  aspect-ratio: 16/9; object-fit: cover;
  background: linear-gradient(135deg, #1a1a3e, #0d0d24);
}
.modal-title {
  font-size: 1.4rem; font-weight: 700; color: #00f0ff;
  margin-bottom: 1rem; text-shadow: 0 0 10px rgba(0,240,255,0.4); text-align: center;
}
.m-desc { margin: 0.8rem 0; color: #ccd; white-space: pre-line; line-height: 1.7; font-size: 0.92rem; }
.m-price { margin: 1rem 0; }
.now { color: #00f0ff; font-size: 1.4rem; font-weight: 700; text-shadow: 0 0 10px rgba(0,240,255,0.4); }
.tip {
  color: #889; font-size: 0.85rem; margin: 0.8rem 0; padding: 0.6rem 0.8rem;
  background: rgba(0,240,255,0.06); border-radius: 6px; border-left: 3px solid #00f0ff;
}
.btn-buy, .btn-submit {
  width: 100%; padding: 0.8rem; border: none; border-radius: 8px;
  background: linear-gradient(135deg, #00f0ff, #b026ff); color: #000;
  font-weight: 700; font-size: 1rem; transition: all 0.3s; margin-top: 0.5rem;
  box-shadow: 0 0 20px rgba(0,240,255,0.3);
}
.btn-buy:hover, .btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(0,240,255,0.5), 0 0 50px rgba(176,38,255,0.3);
}
.inp {
  width: 100%; padding: 0.8rem 1rem; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(0,240,255,0.35); color: #fff; border-radius: 8px;
  margin: 0.5rem 0; outline: none; font-size: 1rem; transition: all 0.3s;
}
.inp:focus { border-color: #00f0ff; box-shadow: 0 0 15px rgba(0,240,255,0.3); }
.inp::placeholder { color: #556; }
.switch-text { text-align: center; color: #889; font-size: 0.88rem; margin-top: 1rem; }
.switch-text a { color: #00f0ff; }

/* ========== 个人中心 ========== */
.profile-container { max-width: 1000px; margin: 0 auto; padding: 0 1.5rem 3rem; }
.profile-header {
  display: flex; align-items: center; gap: 1.5rem;
  background: rgba(12,12,30,0.6); backdrop-filter: blur(10px);
  border: 1px solid rgba(0,240,255,0.3); border-radius: 12px;
  padding: 1.5rem; margin-bottom: 1.5rem;
}
.avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, #00f0ff, #b026ff);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; flex-shrink: 0;
}
.profile-header h2 { color: #fff; font-size: 1.4rem; }
.profile-role { color: #00f0ff; font-size: 0.88rem; margin-top: 0.2rem; }
.profile-points { margin-left: auto; text-align: right; }
.points-label { display: block; color: #889; font-size: 0.82rem; }
.points-value {
  display: block; color: #00f0ff; font-size: 1.8rem; font-weight: 800;
  text-shadow: 0 0 12px rgba(0,240,255,0.5);
}
.profile-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.tab-btn {
  padding: 0.5rem 1.2rem; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(0,240,255,0.2); color: #aab;
  border-radius: 8px; font-size: 0.9rem; transition: all 0.25s;
}
.tab-btn:hover { border-color: rgba(0,240,255,0.5); color: #00f0ff; }
.tab-btn.active {
  background: linear-gradient(135deg, rgba(0,240,255,0.2), rgba(176,38,255,0.2));
  border-color: #00f0ff; color: #00f0ff; box-shadow: 0 0 12px rgba(0,240,255,0.3);
}
.profile-content {
  background: rgba(12,12,30,0.5); backdrop-filter: blur(10px);
  border: 1px solid rgba(0,240,255,0.2); border-radius: 12px;
  padding: 1.5rem; min-height: 300px;
}
.tab-pane h3 { color: #00f0ff; margin-bottom: 1rem; font-size: 1.2rem; }
.btn-logout {
  margin-top: 1.5rem; padding: 0.6rem 1.5rem; background: transparent;
  border: 1px solid #ff2e9c; color: #ff2e9c; border-radius: 8px;
  transition: all 0.25s; font-size: 0.9rem;
}
.btn-logout:hover { background: rgba(255,46,156,0.15); box-shadow: 0 0 12px rgba(255,46,156,0.4); }
.record-item, .purchased-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.8rem 1rem; background: rgba(255,255,255,0.03);
  border: 1px solid rgba(0,240,255,0.15); border-radius: 8px; margin-bottom: 0.6rem;
}
.record-item .r-name, .purchased-item .r-name { color: #fff; font-weight: 600; }
.record-item .r-points, .purchased-item .r-points { color: #ff2e9c; font-weight: 700; }
.record-item .r-time, .purchased-item .r-time { color: #778; font-size: 0.8rem; }
.empty-state { text-align: center; padding: 3rem; color: #667; }
.payment-options {
  display: grid; grid-template-columns: repeat(auto-fill,minmax(180px,1fr));
  gap: 1rem; margin-top: 1rem;
}
.pay-option {
  padding: 1.2rem; text-align: center; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(0,240,255,0.25); border-radius: 10px;
  transition: all 0.25s;
}
.pay-option:hover {
  border-color: #00f0ff; box-shadow: 0 0 15px rgba(0,240,255,0.3); transform: translateY(-2px);
}
.pay-option span:first-child { display: block; color: #fff; font-size: 1.1rem; font-weight: 600; margin-bottom: 0.3rem; }
.pay-price { color: #00f0ff; font-size: 1.3rem; font-weight: 800; }

/* ========== 管理员后台 ========== */
.admin-tabs {
  display: flex; gap: 0.5rem; margin-bottom: 1.2rem;
  border-bottom: 1px solid rgba(0,240,255,0.2); padding-bottom: 0.8rem;
}
.admin-tab {
  padding: 0.4rem 1rem; background: transparent;
  border: 1px solid rgba(0,240,255,0.2); color: #aab;
  border-radius: 6px; font-size: 0.88rem; transition: all 0.25s;
}
.admin-tab.active { background: rgba(0,240,255,0.15); border-color: #00f0ff; color: #00f0ff; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.admin-table th {
  text-align: left; padding: 0.6rem; color: #00f0ff;
  border-bottom: 1px solid rgba(0,240,255,0.2);
}
.admin-table td { padding: 0.6rem; color: #ccd; border-bottom: 1px solid rgba(255,255,255,0.05); }
.admin-table input[type="number"], .admin-table input[type="text"] {
  width: 80px; padding: 0.3rem; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(0,240,255,0.3); color: #fff; border-radius: 4px;
}
.admin-table button {
  padding: 0.25rem 0.6rem; margin: 0 0.2rem;
  background: rgba(0,240,255,0.15); border: 1px solid #00f0ff;
  color: #00f0ff; border-radius: 4px; font-size: 0.8rem; transition: all 0.2s;
}
.admin-table button:hover { background: rgba(0,240,255,0.3); }
.admin-form {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(0,240,255,0.2);
  border-radius: 8px; padding: 1rem; margin-bottom: 1.2rem;
}
.admin-form h4 { color: #00f0ff; margin-bottom: 0.8rem; }
.admin-form input, .admin-form textarea {
  width: 100%; padding: 0.5rem; margin-bottom: 0.6rem;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(0,240,255,0.3);
  color: #fff; border-radius: 6px; font-size: 0.9rem;
}
.admin-form textarea { min-height: 60px; resize: vertical; }
.admin-form label { color: #aab; font-size: 0.85rem; display: block; margin-bottom: 0.2rem; }
.admin-form input[type="file"] { padding: 0.3rem; }
.code-list {
  background: rgba(0,0,0,0.3); border-radius: 6px; padding: 0.8rem;
  max-height: 250px; overflow-y: auto; font-family: 'Courier New', monospace;
}
.code-list div {
  padding: 0.35rem 0; color: #00f0ff;
  border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 0.85rem;
}

/* ========== 结果提示 ========== */
.result-msg {
  margin-top: 0.8rem; padding: 0.6rem; border-radius: 6px;
  font-size: 0.9rem; display: none; white-space: pre-line; line-height: 1.6;
}
.result-msg.success {
  display: block; background: rgba(57,255,20,0.1);
  border: 1px solid rgba(57,255,20,0.4); color: #39ff14;
}
.result-msg.error {
  display: block; background: rgba(255,46,156,0.1);
  border: 1px solid rgba(255,46,156,0.4); color: #ff2e9c;
}

/* ========== 页脚 ========== */
.footer {
  margin-top: 4rem; padding: 2.5rem 1.5rem; text-align: center;
  border-top: 1px solid rgba(0,240,255,0.15); background: rgba(5,5,18,0.8);
}
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-logo {
  font-size: 1.2rem; font-weight: 700; color: #00f0ff;
  margin-bottom: 0.5rem; text-shadow: 0 0 10px rgba(0,240,255,0.4);
}
.footer-text { color: #778; font-size: 0.85rem; margin-bottom: 0.5rem; }
.footer-disclaimer {
  color: #667; font-size: 0.78rem; max-width: 700px;
  margin: 0 auto; line-height: 1.6;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
  .nav-inner { padding: 0 1rem; gap: 1rem; }
  .logo { font-size: 1.05rem; }
  .nav-menu { display: none; }
  .user-info { display: none; }
  .cyber-title { font-size: 2rem; letter-spacing: 1px; }
  .banner-sub { font-size: 0.9rem; letter-spacing: 2px; }
  .banner-box { min-height: 300px; }
  .goods-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.8rem; }
  .card-title { font-size: 0.88rem; }
  .card-desc { font-size: 0.75rem; }
  .price-now { font-size: 1rem; }
  .modal { padding: 1.2rem; width: 94vw; }
  .profile-header { flex-wrap: wrap; }
  .profile-points { margin-left: 0; width: 100%; text-align: left; }
  .admin-table { font-size: 0.78rem; }
  .admin-table th, .admin-table td { padding: 0.4rem; }
  .game-detail-layout { flex-direction: column !important; }
  .game-detail-cover { max-width: 100% !important; }
}

/* ========== 游戏详情页 ========== */
.game-detail-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
}
.btn-back {
  background: rgba(0,240,255,0.1);
  border: 1px solid #00f0ff;
  color: #00f0ff;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  transition: all 0.2s;
}
.btn-back:hover { background: rgba(0,240,255,0.2); }
.game-detail-layout {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}
.game-detail-cover {
  flex: 0 0 380px;
  max-width: 380px;
}
.game-detail-cover img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(0,240,255,0.3);
  box-shadow: 0 0 30px rgba(0,240,255,0.15);
}
.game-detail-info { flex: 1; }
.game-detail-desc {
  color: #aab;
  line-height: 1.8;
  font-size: 1rem;
  margin: 1rem 0 1.5rem;
  white-space: pre-wrap;
}
.game-detail-meta {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.meta-item { display: flex; flex-direction: column; gap: 0.3rem; }
.meta-label { color: #778; font-size: 0.85rem; }
.meta-value { color: #dde; font-size: 1.1rem; }
.game-detail-disks { margin-bottom: 1rem; }
.disks-preview {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
}
.disks-label { color: #778; font-size: 0.9rem; }
.disk-tag {
  background: rgba(0,240,255,0.1);
  border: 1px solid rgba(0,240,255,0.3);
  color: #00f0ff;
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  font-size: 0.82rem;
}

/* ========== 购买成功页 ========== */
.success-container {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem 1rem;
}
.success-icon { font-size: 4rem; margin-bottom: 1rem; }
.success-disks {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
  text-align: left;
}
.disk-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(0,240,255,0.25);
  border-radius: 10px;
  padding: 1.2rem 1.5rem;
  transition: all 0.2s;
}
.disk-card:hover {
  border-color: #00f0ff;
  box-shadow: 0 0 20px rgba(0,240,255,0.15);
}
.disk-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}
.disk-label {
  background: linear-gradient(90deg, #00f0ff, #ff2e9c);
  color: #000;
  padding: 0.15rem 0.6rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
}
.disk-name { color: #dde; font-weight: 600; font-size: 1.05rem; }
.disk-link {
  display: inline-block;
  color: #00f0ff;
  text-decoration: none;
  font-size: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px dashed rgba(0,240,255,0.4);
  transition: all 0.2s;
}
.disk-link:hover { color: #fff; border-bottom-color: #fff; }
.disk-extract {
  margin-top: 0.5rem;
  color: #aab;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.disk-extract code {
  background: rgba(255,255,255,0.1);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  color: #ff2e9c;
  font-family: monospace;
}
.success-tip {
  color: #778;
  font-size: 0.88rem;
  line-height: 1.8;
  margin: 1.5rem 0;
}
.success-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========== 通用按钮 ========== */
.btn-copy {
  background: rgba(0,240,255,0.1);
  border: 1px solid rgba(0,240,255,0.4);
  color: #00f0ff;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.78rem;
  transition: all 0.2s;
}
.btn-copy:hover { background: rgba(0,240,255,0.25); }

/* ========== 卡密列表 ========== */
.card-codes-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.5rem;
}
.card-code-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0,0,0,0.3);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  border: 1px solid rgba(0,240,255,0.2);
}
.card-code-text {
  font-family: 'Courier New', monospace;
  color: #00f0ff;
  font-size: 0.95rem;
  letter-spacing: 1px;
}

/* ========== 图片裁剪器 ========== */
.modal-cropper { width: auto; max-width: 620px; }
.cropper-presets {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.cropper-preset {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  color: #aab;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}
.cropper-preset:hover { border-color: #00f0ff; color: #00f0ff; }
.cropper-preset.active {
  background: rgba(0,240,255,0.15);
  border-color: #00f0ff;
  color: #00f0ff;
}
.cropper-container {
  position: relative;
  width: 100%;
  height: 350px;
  background: #111;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(0,240,255,0.2);
  cursor: move;
}
.cropper-container canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* ========== 详情页简介强化 ========== */
.game-detail-desc {
  background: rgba(255,255,255,0.03);
  border-left: 3px solid #00f0ff;
  padding: 1rem 1.2rem;
  border-radius: 0 8px 8px 0;
  line-height: 1.9;
}

/* ========== 已购买状态 ========== */
.card-btn-purchased {
  background: rgba(255,255,255,0.08) !important;
  border-color: #555 !important;
  color: #888 !important;
  cursor: pointer !important;
}
.card-btn-purchased:hover {
  background: rgba(255,255,255,0.15) !important;
  color: #aaa !important;
}
.purchased-clickable {
  cursor: pointer;
  transition: all 0.2s;
}
.purchased-clickable:hover {
  background: rgba(0,240,255,0.05);
  border-color: rgba(0,240,255,0.3);
}

/* ========== 答题赚积分 ========== */
.quiz-ip-bar {
  background: rgba(0,255,255,0.05);
  border: 1px solid rgba(0,255,255,0.15);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  text-align: center;
  font-size: 0.88rem;
  color: #9ca3af;
  margin-bottom: 1.2rem;
}
.quiz-ip-bar .highlight { color: #00ffff; font-weight: 600; }
.quiz-ip-bar .warning { color: #fbbf24; }
.quiz-ip-bar .danger { color: #f87171; }

.quiz-packages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  margin: 1rem 0;
}
.quiz-pkg {
  background: rgba(10,15,35,0.85);
  border-radius: 12px;
  padding: 1.2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 380px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.quiz-pkg:hover {
  transform: translateY(-4px);
}
.quiz-pkg-green {
  border: 1px solid rgba(34,197,94,0.45);
  box-shadow: 0 0 15px rgba(34,197,94,0.15);
}
.quiz-pkg-green:hover { box-shadow: 0 0 25px rgba(34,197,94,0.3); }
.quiz-pkg-blue {
  border: 1px solid rgba(59,130,246,0.45);
  box-shadow: 0 0 15px rgba(59,130,246,0.15);
}
.quiz-pkg-blue:hover { box-shadow: 0 0 25px rgba(59,130,246,0.3); }
.quiz-pkg-gold {
  border: 1px solid rgba(245,158,11,0.45);
  box-shadow: 0 0 15px rgba(245,158,11,0.15);
}
.quiz-pkg-gold:hover { box-shadow: 0 0 25px rgba(245,158,11,0.3); }

.quiz-pkg-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #22c55e;
  color: #000;
  padding: 2px 14px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 0 10px #22c55e;
  white-space: nowrap;
}
.quiz-badge-blue { background: #3b82f6; color: #fff; box-shadow: 0 0 10px #3b82f6; }
.quiz-badge-gold { background: #f59e0b; color: #000; box-shadow: 0 0 10px #f59e0b; }

.quiz-pkg-body { flex: 1; padding-top: 0.8rem; }
.quiz-pkg-tag {
  background: rgba(34,197,94,0.15);
  color: #22c55e;
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 0.78rem;
}
.quiz-tag-blue { background: rgba(59,130,246,0.15); color: #3b82f6; }
.quiz-tag-gold { background: rgba(245,158,11,0.15); color: #f59e0b; }

.quiz-pkg-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0.8rem 0;
  color: #22c55e;
  text-shadow: 0 0 8px rgba(34,197,94,0.3);
}
.quiz-title-blue { color: #3b82f6; text-shadow: 0 0 8px rgba(59,130,246,0.3); }
.quiz-title-gold { color: #f59e0b; text-shadow: 0 0 8px rgba(245,158,11,0.3); }

.quiz-pkg-bonus {
  color: #fbbf24;
  font-size: 0.85rem;
  margin: 0.4rem 0;
}
.quiz-pkg-list {
  list-style: none;
  text-align: left;
  color: #d1d5db;
  font-size: 0.85rem;
  padding-left: 0.5rem;
  margin-top: 0.6rem;
  line-height: 1.8;
}

.quiz-pkg-btn {
  margin-top: 1rem;
  width: 100%;
  padding: 0.7rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.92rem;
}
.quiz-btn-green { background: #22c55e; color: #000; }
.quiz-btn-green:hover { box-shadow: 0 0 20px #22c55e, 0 0 35px rgba(34,197,94,0.4); }
.quiz-btn-blue { background: #3b82f6; color: #fff; }
.quiz-btn-blue:hover { box-shadow: 0 0 20px #3b82f6, 0 0 35px rgba(59,130,246,0.4); }
.quiz-btn-gold { background: #f59e0b; color: #000; }
.quiz-btn-gold:hover { box-shadow: 0 0 20px #f59e0b, 0 0 35px rgba(245,158,11,0.4); }
.quiz-pkg-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none !important;
}

.quiz-rules {
  margin-top: 1.2rem;
  padding: 0.8rem 1rem;
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(248,113,113,0.25);
  border-radius: 8px;
  color: #fca5a5;
  font-size: 0.82rem;
  line-height: 1.6;
}
.quiz-freeze-tip {
  margin-top: 0.8rem;
  background: #b91c1c;
  color: #fff;
  text-align: center;
  padding: 0.6rem;
  border-radius: 8px;
  font-size: 0.88rem;
}

/* 答题验证弹窗 */
.quiz-verify-mask {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.quiz-verify-box {
  background: rgba(10,15,35,0.97);
  border: 1px solid rgba(0,255,255,0.35);
  border-radius: 16px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 0 40px rgba(0,255,255,0.2);
  animation: quizModalIn 0.25s ease;
}
@keyframes quizModalIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.quiz-verify-box.shake { animation: quizShake 0.4s ease-in-out; }
@keyframes quizShake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-12px); }
  75% { transform: translateX(12px); }
}
.quiz-verify-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(0,255,255,0.2);
}
.quiz-verify-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}
.quiz-close-btn {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #9ca3af;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}
.quiz-close-btn:hover { color: #ff2e9c; }
.quiz-verify-body { padding: 1.2rem; }
.quiz-pkg-label {
  color: #9ca3af;
  font-size: 0.88rem;
  margin-bottom: 0.3rem;
}
.quiz-pkg-label span { color: #00ffff; }
.quiz-warn {
  color: #f87171;
  font-size: 0.8rem;
  margin-bottom: 0.8rem;
}
.quiz-question-box {
  border: 1px solid rgba(0,255,255,0.35);
  padding: 1rem;
  border-radius: 8px;
  min-height: 70px;
  display: flex;
  align-items: center;
  margin-bottom: 0.8rem;
  background: rgba(0,0,0,0.2);
}
.quiz-question-box p {
  font-size: 1rem;
  color: #f3f4f6;
  line-height: 1.6;
  margin: 0;
}
.quiz-question-box .loading-text {
  animation: quizLoading 1s infinite alternate;
}
@keyframes quizLoading {
  from { opacity: 0.4; }
  to { opacity: 1; }
}
.quiz-timer {
  text-align: center;
  color: #fbbf24;
  font-size: 1rem;
  margin-bottom: 0.8rem;
}
.quiz-answer-row { margin-bottom: 0.6rem; }
.quiz-answer-row label {
  display: block;
  color: #d1d5db;
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
}
.quiz-answer-row input {
  width: 100%;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(0,255,255,0.4);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  color: #f3f4f6;
  outline: none;
  font-size: 1rem;
}
.quiz-answer-row input:disabled { opacity: 0.5; }
.quiz-answer-row input:focus { border-color: #00ffff; box-shadow: 0 0 10px rgba(0,255,255,0.3); }
.quiz-tip-msg {
  text-align: center;
  height: 24px;
  font-size: 0.88rem;
  margin: 0;
}
.quiz-tip-msg.text-green { color: #22c55e; }
.quiz-tip-msg.text-red { color: #f87171; }
.quiz-verify-footer {
  display: flex;
  gap: 0.8rem;
  padding: 1rem 1.2rem;
  border-top: 1px solid rgba(0,255,255,0.2);
}
.quiz-btn-cancel {
  flex: 1;
  padding: 0.7rem;
  background: #374151;
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-size: 0.92rem;
}
.quiz-btn-cancel:hover { background: #4b5563; }
.quiz-btn-submit {
  flex: 1;
  padding: 0.7rem;
  background: #00c8ff;
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.92rem;
  transition: all 0.2s;
}
.quiz-btn-submit:hover:not(:disabled) { box-shadow: 0 0 15px rgba(0,200,255,0.5); }
.quiz-btn-submit:disabled { opacity: 0.4; cursor: not-allowed; }

/* 答题成功弹窗 */
.quiz-success-mask {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.quiz-success-box {
  background: rgba(10,15,35,0.97);
  border: 1px solid rgba(168,85,247,0.5);
  border-radius: 16px;
  max-width: 400px;
  width: 100%;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 0 40px rgba(168,85,247,0.3);
  animation: quizModalIn 0.25s ease;
}
.quiz-success-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}
.quiz-success-header h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}
.quiz-success-desc {
  color: #d1d5db;
  margin-bottom: 1rem;
  font-size: 0.92rem;
}
.quiz-card-key {
  background: rgba(0,0,0,0.4);
  padding: 0.8rem 1rem;
  border-radius: 8px;
  color: #00ffff;
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  word-break: break-all;
  letter-spacing: 1px;
}
.quiz-btn-copy {
  width: 100%;
  padding: 0.7rem;
  background: #00c8ff;
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s;
}
.quiz-btn-copy:hover { box-shadow: 0 0 15px rgba(0,200,255,0.5); }
