@charset "utf-8";

:root {
  --cq-bg: #08090c;
  --cq-bg-soft: #101218;
  --cq-panel: #15161c;
  --cq-panel-red: #211114;
  --cq-red: #8f1d22;
  --cq-red-light: #c13a35;
  --cq-gold: #e8bd68;
  --cq-gold-light: #ffe3a1;
  --cq-text: #e7dfd3;
  --cq-muted: #aaa095;
  --cq-line: rgba(232, 189, 104, 0.22);
  --cq-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 0;
  background: var(--cq-bg);
  color: var(--cq-text);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}
body, p, h1, h2, h3, h4, ul, ol, li, figure { margin: 0; }
ul, ol { padding: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--cq-gold); outline-offset: 3px; }
img { max-width: 100%; border: 0; }
button, input, select, textarea { font: inherit; }

.cq-container { width: calc(100% - 40px); max-width: 1200px; margin: 0 auto; }
.cq-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--cq-line);
  background: rgba(8, 9, 12, 0.96);
}
.cq-nav { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.cq-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.cq-brand-mark {
  color: var(--cq-gold-light);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 2px;
  text-shadow: 0 2px 12px rgba(232, 189, 104, 0.2);
}
.cq-brand-sub { padding-left: 12px; border-left: 1px solid var(--cq-line); color: var(--cq-muted); font-size: 12px; letter-spacing: 2px; }
.cq-navlinks { display: flex; align-items: center; gap: 28px; color: #d8cec0; font-size: 15px; }
.cq-navlinks a { transition: color 0.2s ease; }
.cq-navlinks a:hover, .cq-navlinks a[aria-current="page"] { color: var(--cq-gold-light); }

.cq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 24px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.cq-btn:hover { transform: translateY(-2px); }
.cq-btn--gold { background: linear-gradient(180deg, #ffe18a 0%, #e4a735 100%); color: #321b08; box-shadow: 0 8px 26px rgba(228, 167, 53, 0.2); }
.cq-btn--red { background: linear-gradient(180deg, #a8272b, #741419); color: #fff4df; border-color: #c44b43; }
.cq-btn--ghost { background: rgba(8, 9, 12, 0.55); color: var(--cq-gold-light); border-color: rgba(232, 189, 104, 0.55); }
.cq-btn--ghost:hover { background: rgba(44, 25, 20, 0.82); border-color: var(--cq-gold); }
.cq-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.cq-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--cq-line); background: #17110d; }
.cq-hero-media { position: absolute; inset: 0; }
.cq-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 6, 8, 0.82) 0%, rgba(5, 6, 8, 0.25) 48%, rgba(5, 6, 8, 0.06) 75%), linear-gradient(0deg, rgba(8, 9, 12, 0.9), transparent 50%);
}
.cq-hero-media img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
.cq-hero-content { position: relative; z-index: 2; min-height: 610px; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: 230px 0 70px; }
.cq-hero-copy { max-width: 570px; }
.cq-eyebrow { margin-bottom: 10px; color: var(--cq-gold); font-size: 14px; font-weight: 700; letter-spacing: 4px; }
.cq-hero h1 { color: #fff4df; font-size: clamp(34px, 4vw, 52px); line-height: 1.25; letter-spacing: 2px; text-shadow: 0 3px 18px #000; }
.cq-hero p { margin: 18px 0 28px; color: #e2d8c9; font-size: 18px; text-shadow: 0 2px 8px #000; }

.cq-section { padding: 72px 0; }
.cq-section--soft { background: var(--cq-bg-soft); }
.cq-section--compact { padding: 46px 0; }
.cq-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.cq-section-head h2 { color: var(--cq-gold-light); font-size: 30px; line-height: 1.35; }
.cq-section-head p { margin-top: 6px; color: var(--cq-muted); font-size: 14px; }
.cq-section-more { flex-shrink: 0; color: var(--cq-gold); font-size: 14px; }
.cq-grid { display: grid; gap: 20px; }
.cq-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cq-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cq-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cq-card {
  border: 1px solid var(--cq-line);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(32, 25, 25, 0.96), rgba(15, 16, 21, 0.98));
  box-shadow: var(--cq-shadow);
}
.cq-entry { position: relative; display: block; min-height: 190px; padding: 25px; overflow: hidden; transition: transform 0.25s ease, border-color 0.25s ease; }
.cq-entry::after { content: ""; position: absolute; right: -30px; bottom: -45px; width: 130px; height: 130px; border: 1px solid rgba(232, 189, 104, 0.09); border-radius: 50%; }
.cq-entry:hover { transform: translateY(-5px); border-color: rgba(232, 189, 104, 0.62); }
.cq-entry-no { display: block; margin-bottom: 24px; color: var(--cq-red-light); font-family: Georgia, serif; font-size: 28px; font-weight: 700; }
.cq-entry h3 { margin-bottom: 8px; color: #f5e9d7; font-size: 20px; }
.cq-entry p { color: var(--cq-muted); font-size: 14px; }
.cq-entry-link { display: block; margin-top: 18px; color: var(--cq-gold); font-size: 14px; }

.cq-notice-list { list-style: none; border-top: 1px solid var(--cq-line); }
.cq-notice-list li { display: flex; align-items: flex-start; gap: 16px; padding: 17px 4px; border-bottom: 1px solid rgba(232, 189, 104, 0.12); }
.cq-notice-tag { flex: 0 0 auto; margin-top: 3px; padding: 1px 9px; border: 1px solid rgba(193, 58, 53, 0.55); border-radius: 3px; color: #ef9181; font-size: 12px; line-height: 1.6; }
.cq-notice-text { color: #d9d0c4; font-size: 15px; }
.cq-notice-list li:first-child .cq-notice-text { color: var(--cq-gold-light); }

.cq-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.cq-shot { overflow: hidden; border: 1px solid var(--cq-line); border-radius: 12px; background: #0c0d11; }
.cq-shot img { display: block; width: 100%; aspect-ratio: 1178 / 650; object-fit: cover; transition: transform 0.35s ease; }
.cq-shot:hover img { transform: scale(1.02); }
.cq-shot figcaption { display: flex; justify-content: space-between; padding: 13px 17px; color: #d9c8ac; font-size: 14px; }
.cq-shot figcaption span { color: #80776d; font-family: Georgia, serif; }

.cq-community { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 30px 36px; }
.cq-community h2 { color: var(--cq-gold-light); font-size: 26px; }
.cq-community p { margin-top: 8px; color: var(--cq-muted); }
.cq-community strong { color: #f1d69c; }
.cq-qr-list { display: flex; gap: 22px; flex-shrink: 0; }
.cq-qr { width: 126px; text-align: center; color: var(--cq-muted); font-size: 13px; }
.cq-qr img { display: block; width: 112px; height: 112px; margin: 0 auto 8px; padding: 5px; background: #fff; border-radius: 6px; }

.cq-footer { border-top: 1px solid var(--cq-line); background: #060709; }
.cq-footer-main { display: flex; justify-content: space-between; gap: 30px; padding: 34px 0 24px; }
.cq-footer-brand { color: var(--cq-gold); font-size: 20px; font-weight: 700; }
.cq-footer-links { display: flex; flex-wrap: wrap; gap: 22px; color: #c7bcae; font-size: 14px; }
.cq-footer-note { padding: 18px 0 26px; border-top: 1px solid rgba(232, 189, 104, 0.1); color: #77716a; font-size: 12px; line-height: 1.9; text-align: center; }
.cq-footer-note a { color: #9a8b75; }

.cq-page-hero { padding: 62px 0 44px; border-bottom: 1px solid var(--cq-line); background: linear-gradient(90deg, rgba(8, 9, 12, 0.96), rgba(40, 16, 16, 0.7)), url("../images/bg6.jpg") center 32% / cover no-repeat; }
.cq-page-hero h1 { color: var(--cq-gold-light); font-size: 38px; line-height: 1.3; }
.cq-page-hero p { max-width: 680px; margin-top: 12px; color: #c5b9aa; }
.cq-download-card { display: flex; flex-direction: column; min-height: 230px; padding: 26px; }
.cq-download-card h2 { color: #f4e5cd; font-size: 21px; }
.cq-download-card p { margin: 10px 0 22px; color: var(--cq-muted); font-size: 14px; }
.cq-download-card .cq-actions { margin-top: auto; }
.cq-meta { display: inline-block; margin-bottom: 12px; color: var(--cq-gold); font-size: 12px; letter-spacing: 1px; }
.cq-tip { margin-top: 24px; padding: 20px 24px; border-left: 3px solid var(--cq-red-light); border-radius: 0 8px 8px 0; background: #181216; color: #c9bba9; font-size: 14px; }
.cq-top-link { position: fixed; right: 22px; bottom: 22px; z-index: 30; width: 44px; height: 44px; border: 1px solid var(--cq-line); border-radius: 50%; background: rgba(15, 15, 19, 0.9); color: var(--cq-gold); cursor: pointer; }

.cq-recharge { display: grid; grid-template-columns: 0.85fr 1.4fr; gap: 24px; }
.cq-recharge-panel { padding: 28px; }
.cq-recharge-panel h2 { margin-bottom: 18px; color: var(--cq-gold-light); font-size: 21px; }
.cq-recharge-panel ol { padding-left: 22px; color: #cfc2b2; }
.cq-recharge-panel li { margin-bottom: 13px; }
.cq-channel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cq-channel-grid a { display: flex; align-items: center; justify-content: center; min-height: 52px; border: 1px solid rgba(232, 189, 104, 0.3); border-radius: 6px; background: #201719; color: #f1d69c; transition: background 0.2s ease, border-color 0.2s ease; }
.cq-channel-grid a:hover { border-color: var(--cq-gold); background: #3a1d1d; }

.cq-empty { min-height: 58vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 70px 20px; text-align: center; }
.cq-empty-code { color: var(--cq-gold); font-family: Georgia, serif; font-size: 110px; font-weight: 700; line-height: 1; }
.cq-empty h1 { margin-top: 18px; color: #f2e4ce; font-size: 28px; }
.cq-empty p { margin: 12px 0 26px; color: var(--cq-muted); }

/* 手机直玩弹窗 */
.h5mask { display: none; position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, 0.82); }
.h5box { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 430px; max-width: calc(100% - 36px); padding: 28px; border: 1px solid #c9a24a; border-radius: 12px; background: linear-gradient(180deg, #211517, #0d0d11); box-shadow: 0 20px 70px #000; text-align: center; }
.h5box h2 { margin-bottom: 12px; color: var(--cq-gold-light); font-size: 23px; }
.h5box p { color: #cdbfa8; font-size: 14px; }
.h5box .h5url { margin: 16px 0 20px; padding: 11px; border: 1px dashed #8a6f36; border-radius: 6px; background: #08090c; color: #ffe08a; word-break: break-all; }
.h5btns { display: flex; justify-content: center; gap: 10px; }
.h5btns a { display: inline-flex; align-items: center; justify-content: center; min-width: 108px; padding: 9px 18px; border-radius: 5px; cursor: pointer; font-size: 14px; }
.h5btns .h5copy { background: linear-gradient(180deg, #ffe18a, #e4a735); color: #321b08; font-weight: 700; }
.h5btns .h5cancel { border: 1px solid #5a4a34; background: #2a211c; color: #e7d8bd; }

/* APP下载页：保留原脚本需要的类名 */
.cq-app-page { min-height: 100vh; background: var(--cq-bg); }
.cq-app-main { padding: 24px; }
.cq-app-back { display: inline-block; margin-bottom: 16px; color: var(--cq-gold); font-size: 14px; }
.cq-app-card { padding: 24px; border: 1px solid var(--cq-line); border-radius: 14px; background: var(--cq-panel); }
.cq-app-head { display: flex; align-items: center; gap: 20px; }
.cq-app-logo { width: 88px; height: 88px; flex: 0 0 88px; border-radius: 20px; }
.cq-app-title h1 { color: var(--cq-gold-light); font-size: 26px; line-height: 1.3; }
.cq-app-title p { margin-top: 6px; color: var(--cq-muted); font-size: 14px; }
.cq-install-buttons { display: flex; gap: 10px; margin-top: 22px; }
.cq-app-page .down, .cq-app-page .doubt { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 22px; border-radius: 6px; cursor: pointer; font-size: 15px; font-weight: 700; }
.cq-app-page .down { background: linear-gradient(180deg, #ffe18a, #e4a735); color: #321b08; }
.cq-app-page .doubt { border: 1px solid var(--cq-line); background: transparent; color: var(--cq-gold-light); }
.cq-app-notice { margin-top: 18px; padding: 18px 20px; border: 1px solid rgba(193, 58, 53, 0.38); border-radius: 10px; background: #251316; color: #e1c9bc; font-size: 14px; }
.cq-app-notice strong { display: block; margin-bottom: 6px; color: #efad91; }
.cq-app-section { margin-top: 20px; padding: 22px 24px; }
.cq-app-section h2 { margin-bottom: 12px; color: var(--cq-gold-light); font-size: 20px; }
.cq-app-section p { color: #c8bcae; font-size: 14px; }
.cq-app-info { list-style: none; }
.cq-app-info li { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid rgba(232, 189, 104, 0.1); font-size: 14px; }
.cq-app-info li:last-child { border-bottom: 0; }
.cq-app-info span { flex-shrink: 0; color: var(--cq-muted); }
.cq-app-info strong { color: #e3d7c7; font-weight: 400; text-align: right; }
.cq-app-footer { padding: 24px; color: #77716a; font-size: 12px; text-align: center; }
.pup { display: none; position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, 0.82); }
.guide { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(620px, 86%); overflow: hidden; border: 1px solid var(--cq-line); border-radius: 12px; background: #111217; padding-bottom: 16px; }
.guide .colse { position: absolute; top: 8px; right: 8px; z-index: 3; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, 0.65); color: #fff; cursor: pointer; font-size: 25px; line-height: 1; }
.guide .pics, .guide .swiper-container { height: 480px; }
.guide .pic { height: 390px; overflow: hidden; background: #fff; }
.guide .pic img { width: 100%; height: 100%; object-fit: contain; }
.guide .text { padding: 16px; color: var(--cq-gold-light); font-size: 15px; text-align: center; }
.guide .smallTip { color: var(--cq-muted); font-size: 13px; text-align: center; }
.pupPic { display: none; position: fixed; inset: 0; z-index: 110; background: #000; }
.pupPic img { width: 100%; height: 100%; object-fit: contain; }

@media (max-width: 960px) {
  .cq-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cq-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cq-recharge { grid-template-columns: 1fr; }
  .cq-community { align-items: flex-start; }
}

@media (max-width: 720px) {
  body { font-size: 15px; }
  .cq-container { width: calc(100% - 28px); }
  .cq-nav { min-height: 0; flex-wrap: wrap; gap: 12px; padding: 16px 0 12px; }
  .cq-brand-sub { display: none; }
  .cq-brand-mark { font-size: 22px; }
  .cq-navlinks { width: 100%; justify-content: space-between; gap: 10px; font-size: 13px; }
  .cq-hero-media { position: relative; }
  .cq-hero-media::after { background: linear-gradient(0deg, rgba(8, 9, 12, 0.45), transparent 45%); }
  .cq-hero-media img { height: auto; aspect-ratio: 1920 / 850; object-fit: cover; }
  .cq-hero-content { min-height: 0; padding: 26px 0 34px; }
  .cq-hero h1 { font-size: 32px; }
  .cq-hero p { margin: 12px 0 22px; font-size: 15px; }
  .cq-hero .cq-actions { width: 100%; }
  .cq-hero .cq-btn { flex: 1 1 100%; }
  .cq-section { padding: 46px 0; }
  .cq-section--compact { padding: 30px 0; }
  .cq-section-head { align-items: flex-start; margin-bottom: 20px; }
  .cq-section-head h2 { font-size: 25px; }
  .cq-section-more { display: none; }
  .cq-grid--3, .cq-grid--2 { grid-template-columns: 1fr; }
  .cq-grid { gap: 14px; }
  .cq-entry { min-height: 160px; padding: 20px; }
  .cq-entry-no { margin-bottom: 14px; }
  .cq-notice-list li { gap: 10px; padding: 14px 0; }
  .cq-notice-text { font-size: 14px; }
  .cq-gallery { grid-template-columns: 1fr; gap: 16px; }
  .cq-community { flex-direction: column; gap: 24px; padding: 24px; }
  .cq-qr-list { width: 100%; justify-content: flex-start; }
  .cq-footer-main { flex-direction: column; gap: 14px; padding: 26px 0 20px; }
  .cq-footer-links { gap: 16px; }
  .cq-page-hero { padding: 42px 0 32px; }
  .cq-page-hero h1 { font-size: 30px; }
  .cq-download-card { min-height: 205px; padding: 22px; }
  .cq-channel-grid { grid-template-columns: 1fr; }
  .cq-top-link { right: 14px; bottom: 14px; }
  .cq-app-main { padding: 14px; }
  .cq-app-card { padding: 18px; }
  .cq-app-head { gap: 14px; }
  .cq-app-logo { width: 72px; height: 72px; flex-basis: 72px; border-radius: 16px; }
  .cq-app-title h1 { font-size: 22px; }
  .cq-install-buttons { flex-wrap: wrap; }
  .cq-app-page .down, .cq-app-page .doubt { flex: 1 1 130px; }
  .guide .pics, .guide .swiper-container { height: 430px; }
  .guide .pic { height: 340px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
