:root {
  --qg: #7257e8;
  --qg-dark: #3e326f;
  --qg-pink: #ff6f91;
  --qg-yellow: #ffc847;
  --qg-cream: #fffaf1;
  --qg-text: #332d49;
  --qg-muted: #716b80;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--qg-text);
}
[hidden] {
  display: none !important;
}
.qg-home {
  background: var(--qg-cream);
  min-height: 100vh;
}
.site-head {
  height: 76px;
  max-width: 1180px;
  margin: auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 38px;
}
.qg-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--qg-dark);
  text-decoration: none;
}
.qg-brand > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 15px 15px 15px 5px;
  background: var(--qg-yellow);
  font-size: 21px;
  font-weight: 900;
  box-shadow: 0 4px 0 #dfa817;
}
.qg-brand b {
  font-size: 20px;
}
.qg-brand small {
  display: block;
  color: var(--qg-pink);
  font-size: 10px;
  letter-spacing: 0.18em;
}
.site-head nav {
  display: flex;
  gap: 30px;
  margin: auto;
}
.site-head nav a {
  color: var(--qg-muted);
  text-decoration: none;
  font-weight: 700;
}
.home-login-actions { display: flex; gap: 9px; }
.admin-entry { border: 0; border-radius: 10px; padding: 10px 15px; background: var(--qg); color: #fff; cursor: pointer; font-weight: 750; }
.qg-home button,
.auth-screen button {
  border: 0;
  border-radius: 14px;
  padding: 13px 21px;
  background: var(--qg);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.qg-home .outline {
  background: #fff;
  color: var(--qg-dark);
  border: 2px solid #e5dff0;
}
.qg-hero {
  min-height: 640px;
  padding: 70px max(24px, calc((100vw - 1120px) / 2));
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 50px;
  background: radial-gradient(circle at 12% 20%, #fff 0 4%, transparent 5%),
    linear-gradient(135deg, #fff6d6, #ffe7ed 55%, #ede8ff);
}
.qg-hero em,
.section-title em {
  font-style: normal;
  color: var(--qg);
  font-weight: 900;
  letter-spacing: 0.08em;
}
.qg-hero h1 {
  font-size: 58px;
  line-height: 1.1;
  margin: 18px 0;
}
.qg-hero h1 strong {
  color: var(--qg-pink);
}
.qg-hero p {
  max-width: 650px;
  color: var(--qg-muted);
  font-size: 18px;
  line-height: 1.8;
}
.hero-buttons {
  display: flex;
  gap: 12px;
  margin: 28px 0;
}
.hero-trust {
  display: flex;
  gap: 20px;
  color: var(--qg-muted);
  font-weight: 700;
  font-size: 14px;
}
.hero-trust span:before {
  content: "✓";
  color: #12a56c;
  margin-right: 6px;
}
.hero-art {
  height: 480px;
  position: relative;
}
.reward-card {
  position: absolute;
  left: 45px;
  top: 95px;
  width: 350px;
  padding: 34px;
  border-radius: 28px;
  background: linear-gradient(135deg, #7358e8, #a990ff);
  color: #fff;
  box-shadow: 0 28px 50px #6042b436;
  transform: rotate(-4deg);
}
.reward-card small,
.reward-card i {
  display: block;
  font-style: normal;
}
.reward-card b {
  display: block;
  font-size: 38px;
  margin: 22px 0;
}
.gift {
  position: absolute;
  right: 20px;
  bottom: 55px;
  width: 155px;
  height: 145px;
  border-radius: 22px;
  background: var(--qg-pink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 55px;
  font-weight: 900;
  box-shadow: 0 15px 0 #d84d70;
  transform: rotate(5deg);
}
.gift small {
  display: block;
  font-size: 12px;
}
.bubble {
  position: absolute;
  padding: 11px 16px;
  border-radius: 99px;
  background: #fff;
  box-shadow: 0 8px 25px #3026531d;
  font-weight: 800;
}
.bubble.one {
  top: 35px;
  right: 25px;
}
.bubble.two {
  bottom: 25px;
  left: 5px;
}
.qg-section {
  max-width: 1160px;
  margin: auto;
  padding: 95px 24px;
}
.section-title {
  text-align: center;
  margin: 0 auto 45px;
}
.section-title h2 {
  font-size: 40px;
  margin: 13px;
}
.section-title p {
  color: var(--qg-muted);
}
.feature-grid,
.role-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-grid article {
  padding: 32px;
  border-radius: 30px;
  background: #fff;
  border: 2px solid #f0e9f6;
  box-shadow: 0 15px 35px #44365e12;
}
.feature-grid article:nth-child(2) {
  background: #fff5cd;
}
.feature-grid article:nth-child(3) {
  background: #e8f7ff;
}
.feature-grid i {
  font-style: normal;
  font-size: 36px;
}
.feature-grid p {
  color: var(--qg-muted);
  line-height: 1.7;
}
.role-section {
  padding: 90px max(24px, calc((100vw - 1120px) / 2));
  background: #f0ebff;
}
.role-grid article {
  padding: 28px;
  background: #fff;
  border-radius: 22px;
  display: grid;
  gap: 14px;
}
.role-grid b {
  font-size: 22px;
  color: var(--qg);
}
.role-grid span {
  color: var(--qg-muted);
  line-height: 1.8;
}
.flow-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}
.flow-grid div {
  text-align: center;
  padding: 22px 8px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #eee5f5;
}
.flow-grid b {
  margin: auto auto 12px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--qg);
  color: #fff;
}
.flow-grid span {
  font-weight: 800;
}
.join-card {
  max-width: 1080px;
  margin: 20px auto 90px;
  padding: 70px 24px;
  text-align: center;
  border-radius: 40px;
  background: linear-gradient(135deg, #6549d9, #9276ec);
  color: #fff;
}
.join-card h2 {
  font-size: 36px;
  margin: 0 auto 12px;
}
.join-card p {
  color: #e6e0ff;
}
.join-card button {
  background: var(--qg-yellow);
  color: #4e3a00;
}
.qg-home footer {
  padding: 30px max(24px, calc((100vw - 1120px) / 2));
  background: #29223d;
  color: #fff;
  display: flex;
  justify-content: space-between;
}
.auth-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #3b3068;
  position: relative;
}
.back-home {
  position: absolute;
  top: 22px;
  left: 22px;
  background: transparent !important;
}
.auth-side {
  padding: 13vw 10vw;
  color: #fff;
  background: radial-gradient(circle at 20% 20%, #856bf1, transparent 48%);
}
.qg-brand.light {
  color: #fff;
}
.auth-side h2 {
  font-size: 43px;
}
.auth-side p {
  line-height: 1.8;
  color: #dcd5f2;
}
.auth-panel {
  align-self: center;
  justify-self: center;
  width: min(470px, 90%);
  padding: 35px;
  background: #fff;
  border-radius: 25px;
}
.auth-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 4px;
  background: #f1edf8;
  border-radius: 12px;
}
.auth-tabs button {
  background: transparent;
  color: var(--qg-muted);
  padding: 10px 5px;
}
.auth-tabs button.active {
  background: #fff;
  color: var(--qg);
  box-shadow: 0 3px 12px #4a3c6820;
}
.auth-panel h1 {
  margin: 28px 0 5px;
}
.auth-panel p {
  color: var(--qg-muted);
}
.auth-panel label {
  display: grid;
  gap: 7px;
  margin: 16px 0;
  color: var(--qg-muted);
  font-size: 14px;
}
.auth-panel input {
  width: 100%;
  padding: 13px;
  border: 1px solid #e1daeb;
  border-radius: 10px;
}
.auth-panel form > button {
  width: 100%;
  margin-top: 8px;
}
.form-error {
  min-height: 22px;
  color: #c3312c;
  margin-top: 10px;
}
.demo-tip {
  display: block;
  color: #8a8199;
  text-align: center;
}
.sidebar .user button {
  padding: 5px;
  background: transparent;
  color: #aab5c8;
}
.membership-card {
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, #7257e8, #9e87ef);
  color: #fff;
  margin-bottom: 20px;
}
.membership-card b {
  font-size: 30px;
  display: block;
  margin: 8px 0;
}
.empty-state {
  text-align: center;
  padding: 55px;
  color: #7b8798;
}
.invite-code {
  font-family: monospace;
  letter-spacing: 0.12em;
  font-size: 22px;
  color: var(--qg);
}
.product-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 15px; padding-top: 14px; border-top: 1px solid #edf0f5; }
.switch { display: flex; align-items: center; gap: 7px; border: 0; border-radius: 99px; padding: 8px 11px; background: #e5e8ee; color: #687183; cursor: pointer; font-weight: 700; }
.switch i { width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px #0002; }
.switch.on { background: #dff5ea; color: #14724d; }
.switch.on i { background: #19a66b; }
.product-toggle,.product-price { min-height: 40px; border-radius: 9px; padding: 9px 11px; cursor: pointer; font-weight: 700; }
.product-toggle { display: flex; justify-content: center; align-items: center; gap: 7px; border: 1px solid #d9dee8; background: #f4f6f9; color: #667085; }
.product-toggle i { width: 10px; height: 10px; border-radius: 50%; background: #9aa4b2; }
.product-toggle.on { border-color: #b8e7d1; background: #e8f8f0; color: #14724d; }
.product-toggle.on i { background: #19a66b; box-shadow: 0 0 0 3px #c9efdc; }
.product-price { border: 1px solid #cdd7ff; background: #f0f3ff; color: #3159dc; }
.product-toggle:hover,.product-price:hover { transform: translateY(-1px); box-shadow: 0 5px 12px #263d7017; }
.bank-card { display: grid; grid-template-columns: 110px 1fr; gap: 12px 16px; padding: 20px; border-radius: 16px; background: #f6f3ff; margin: 16px 0; }
.bank-card span { color: #777084; }
.bank-account { font-family: monospace; font-size: 20px; letter-spacing: .08em; }
.amount-presets { display: flex; gap: 8px; margin: 12px 0; }
.amount-presets button { border: 1px solid #ddd4f3; background: #fff; color: #5e48b8; border-radius: 9px; padding: 8px 12px; cursor: pointer; }
.bank-card-page { max-width: 760px; border: 1px solid #e2daf7; }
.payment-channels { grid-template-columns: repeat(2,minmax(180px,260px)); }
.wechat-pay { display: grid; justify-items: center; gap: 12px; padding: 12px; }
.wechat-pay img { width: 260px; max-width: 100%; border-radius: 12px; }
.wechat-pay small { color: #777084; }
.qr-placeholder { width: 240px; height: 240px; display: grid; place-items: center; text-align: center; background: #f4f4f4; border: 1px dashed #aaa; }
@media (max-width: 800px) {
  .site-head {
    padding: 0 14px;
  }
  .site-head nav {
    display: none;
  }
  .qg-hero {
    grid-template-columns: 1fr;
    padding: 50px 20px 20px;
  }
  .qg-hero h1 {
    font-size: 42px;
  }
  .qg-hero p {
    font-size: 16px;
  }
  .hero-buttons,
  .hero-trust {
    flex-wrap: wrap;
  }
  .hero-art {
    height: 370px;
  }
  .reward-card {
    left: 15px;
    width: 290px;
  }
  .gift {
    width: 120px;
    height: 115px;
  }
  .feature-grid,
  .role-grid {
    grid-template-columns: 1fr;
  }
  .flow-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .section-title h2 {
    font-size: 31px;
  }
  .join-card {
    margin: 10px 14px 55px;
    border-radius: 28px;
  }
  .join-card h2 {
    font-size: 27px;
  }
  .auth-screen {
    grid-template-columns: 1fr;
  }
  .auth-side {
    display: none;
  }
  .auth-panel {
    margin: 80px auto 25px;
  }
  .qg-home footer {
    gap: 10px;
    flex-direction: column;
  }
  .shell {
    grid-template-columns: 1fr !important;
  }
  .sidebar {
    position: static !important;
    height: auto !important;
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
  }
  .sidebar .user {
    display: none;
  }
}
@media (max-width: 560px) {
  .product-actions { grid-template-columns: 1fr; }
  .bank-card { grid-template-columns: 1fr; }
  .bank-card span { margin-top: 7px; }
  .amount-presets { flex-wrap: wrap; }
}
