/* 斑斓世界 G-World 官网 — bright daytime city, street stickers: white die-cut borders, ink outlines, hard shadows. */
:root {
  --ink: #1d1442;
  --ink-2: #4a4372;
  --paper: #ffffff;
  --sky: #e9f6ff;
  --sky-2: #cfeaff;
  --blue: #2f8cff;
  --pink: #ff2e93;
  --orange: #ff7a1a;
  --yellow: #ffd23d;
  --lime: #7fdc3c;
  --cyan: #12c6ff;
  --violet: #8a5cff;
  --gold-1: #fff3b0;
  --gold-2: #ffc928;
  --gold-3: #ff9800;
  --gold-ink: #6b3b00;
  --radius: 18px;
  --shadow: 6px 6px 0 var(--ink);
  --font: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--sky);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* ------------------------------------------------------------------ nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 3px solid var(--ink);
}
.nav-in { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; margin-right: auto; }
.brand-g { width: 46px; height: 46px; object-fit: contain; filter: drop-shadow(2px 2px 0 var(--ink)); }
.brand-cn { height: 34px; width: auto; }
.brand-en { font-weight: 900; font-size: 15px; color: var(--ink); letter-spacing: .04em; padding: 2px 8px; border: 2px solid var(--ink); border-radius: 999px; background: var(--yellow); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  text-decoration: none; color: var(--ink); font-weight: 800; font-size: 16px;
  padding: 8px 14px; border-radius: 999px; transition: background .15s, transform .15s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--sky-2); }
.nav-links a.btn-gold { margin-left: 10px; }
.nav-toggle { display: none; margin-left: auto; width: 46px; height: 42px; border: 3px solid var(--ink); border-radius: 12px; background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 3px; margin: 4px auto; background: var(--ink); border-radius: 2px; }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 900; text-decoration: none; cursor: pointer;
  border: 3px solid var(--ink); border-radius: 999px; padding: 10px 24px;
  box-shadow: 4px 5px 0 var(--ink); transition: transform .12s, box-shadow .12s, filter .12s;
  color: var(--ink); background: var(--paper);
}
.btn:hover { transform: translate(-1px, -2px); box-shadow: 5px 7px 0 var(--ink); }
.btn:active { transform: translate(2px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-big { font-size: 20px; padding: 14px 34px; }
.btn-pink { background: linear-gradient(135deg, var(--pink), var(--orange)); color: #fff; text-shadow: 0 2px 0 rgba(29, 20, 66, .45); }
.btn-blue { background: linear-gradient(135deg, var(--cyan), var(--blue)); color: #fff; text-shadow: 0 2px 0 rgba(29, 20, 66, .45); }
.soon { font-size: 12px; font-weight: 900; line-height: 1; padding: 4px 8px; border-radius: 999px; background: var(--ink); color: var(--yellow); text-shadow: none; }
.btn-gold .soon { background: var(--gold-ink); color: var(--gold-1); }

/* the money button: gold coin, gold bar, a shine that sweeps across */
.btn-gold {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold-ink) !important; font-weight: 900;
  background: linear-gradient(180deg, var(--gold-1) 0%, var(--gold-2) 48%, var(--gold-3) 100%) !important;
  border: 3px solid var(--gold-ink); border-radius: 999px;
  box-shadow: 0 4px 0 var(--gold-ink), inset 0 2px 0 rgba(255, 255, 255, .8);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .6);
}
.btn-gold::after {
  content: ""; position: absolute; top: -40%; left: -60%; width: 40%; height: 180%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .85), transparent);
  transform: rotate(20deg); animation: shine 3.2s ease-in-out infinite;
}
@keyframes shine { 0%, 55% { left: -60%; } 100% { left: 140%; } }
.coin {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  font-style: normal; font-size: 14px; font-weight: 900; color: var(--gold-ink);
  background: radial-gradient(circle at 35% 30%, #fff8cf, var(--gold-2) 55%, var(--gold-3));
  border: 2px solid var(--gold-ink);
}
@media (prefers-reduced-motion: reduce) { .btn-gold::after { animation: none; display: none; } html { scroll-behavior: auto; } }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; overflow: hidden; background: #bfe6ff; min-height: min(86vh, 860px); display: flex; align-items: center; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(233, 246, 255, .92) 0%, rgba(233, 246, 255, .7) 32%, rgba(233, 246, 255, 0) 58%); }
.hero-in { position: relative; z-index: 2; padding-block: 80px 120px; }
.hero-logo { width: min(520px, 86vw); filter: drop-shadow(5px 7px 0 rgba(29, 20, 66, .35)); }
.hero-slogan {
  display: inline-block; margin: 18px 0 6px; font-size: clamp(26px, 3.4vw, 42px); font-weight: 900; letter-spacing: .06em;
  background: var(--ink); color: var(--yellow); padding: 4px 18px; border-radius: 10px; transform: rotate(-2deg);
  box-shadow: 5px 5px 0 var(--pink);
}
.hero-sub { max-width: 30em; font-size: 18px; font-weight: 700; color: var(--ink-2); margin: 14px 0 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-meta { margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.torn { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 60px; z-index: 3; }
.sticker { position: absolute; z-index: 2; pointer-events: none; filter: drop-shadow(4px 5px 0 rgba(29, 20, 66, .3)); }
.hero-logo-box { position: relative; width: fit-content; }
.hero-logo-box .st-crown { width: 96px; top: -30px; right: -34px; transform: rotate(16deg); }
.hero .st-cassette { width: 130px; bottom: 70px; right: 6%; transform: rotate(-10deg); }

/* ------------------------------------------------------------------ sections */
.sec { position: relative; padding-block: 72px; }
.sec-white { background: var(--paper); }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.tag {
  display: inline-block; margin: 0; font-size: clamp(24px, 3vw, 34px); font-weight: 900; line-height: 1.3;
  padding: 6px 22px; border: 3px solid var(--ink); border-radius: 14px; background: var(--yellow);
  box-shadow: var(--shadow); transform: rotate(-1.5deg);
}
.tag-pink { background: var(--pink); color: #fff; }
.tag-cyan { background: var(--cyan); }
.tag-lime { background: var(--lime); }
.tag-violet { background: var(--violet); color: #fff; }
.more { font-weight: 800; text-decoration: none; color: var(--ink); border-bottom: 3px solid var(--pink); }
.lead { font-size: 18px; color: var(--ink-2); max-width: 46em; }

.card {
  background: var(--paper); border: 3px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px 24px;
}
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* news cards */
.news-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; min-width: 0; }
.news-card:hover { transform: translate(-2px, -3px); box-shadow: 8px 9px 0 var(--ink); }
.news-meta { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 800; color: var(--ink-2); }
.pill { display: inline-block; font-size: 13px; font-weight: 900; padding: 1px 10px; border-radius: 999px; border: 2px solid var(--ink); background: var(--cyan); color: var(--ink); }
.pill-pink { background: var(--pink); color: #fff; }
.pill-yellow { background: var(--yellow); }
.pill-lime { background: var(--lime); }
.news-card h3 { margin: 0; font-size: 20px; line-height: 1.4; }
.news-card p { margin: 0; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* classes */
.sec-classes { background: linear-gradient(180deg, #fff 0%, #fff6d6 100%); overflow: hidden; }
.sec-classes::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(29, 20, 66, .13) 2px, transparent 2.5px); background-size: 22px 22px;
}
.cls { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; margin-top: 24px; }
.cls-stage { position: relative; height: 560px; display: grid; grid-template-rows: minmax(0, 1fr); place-items: center; }
.cls-stage > * { grid-area: 1 / 1; }
.cls-stage .splat { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 92%; max-width: 520px; opacity: .95; }
.cls-stage .cls-img { position: relative; height: 100%; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(8px 10px 0 rgba(29, 20, 66, .28)); animation: pop .35s ease-out; }
@keyframes pop { from { transform: translateY(14px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.cls-info { position: relative; }
.cls-en { margin: 0; font-weight: 900; letter-spacing: .3em; color: var(--ink-2); }
.cls-name { margin: 4px 0 12px; font-size: clamp(40px, 5vw, 64px); line-height: 1.1; font-weight: 900; }
.cls-name span { padding: 0 10px; background: linear-gradient(transparent 58%, var(--cls, var(--yellow)) 58%); }
.cls-desc { font-size: 18px; color: var(--ink-2); }
.cls-skills { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; margin: 16px 0 0; }
.cls-skills li { font-weight: 800; padding: 4px 12px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; }
.cls-tabs { position: relative; display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.cls-tab {
  display: flex; align-items: center; gap: 10px; cursor: pointer; font: inherit; font-weight: 900; font-size: 17px;
  padding: 6px 18px 6px 6px; border: 3px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink); transition: transform .12s;
}
.cls-tab img { width: 44px; height: 44px; object-fit: cover; object-position: top; border-radius: 50%; border: 2px solid var(--ink); background: var(--sky); }
.cls-tab[aria-selected="true"] { background: var(--cls, var(--yellow)); transform: translateY(-3px); }

/* features */
.feat { position: relative; padding-top: 34px; }
.feat img { position: absolute; top: -30px; right: 14px; width: auto; height: 72px; max-width: 110px; object-fit: contain; transform: rotate(8deg); filter: drop-shadow(3px 4px 0 rgba(29, 20, 66, .25)); }
.feat h3 { padding-right: 96px; }
.feat h3 { margin: 0 0 6px; font-size: 21px; }
.feat p { margin: 0; color: var(--ink-2); }

/* download band */
.sec-download { background: #222 center / cover no-repeat; padding-block: 110px; }
.sec-download::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(233, 246, 255, .15), rgba(29, 20, 66, .35)); }
.dl-card { position: relative; max-width: 640px; margin-inline: auto; text-align: center; }
.dl-card h2 { margin: 0 0 18px; font-size: clamp(28px, 3.6vw, 40px); }
.req { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; padding: 0; list-style: none; margin: 20px 0 6px; font-weight: 800; }
.req li::before { content: "● "; color: var(--pink); }
.note { font-size: 14px; color: var(--ink-2); }

/* page header (inner pages) */
.page-hero { position: relative; overflow: hidden; padding-block: 76px 70px; background: #bfe6ff center / cover no-repeat; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(233, 246, 255, .95), rgba(233, 246, 255, .55) 60%, rgba(233, 246, 255, .15)); }
.page-hero .wrap { position: relative; }
.page-hero h1 { margin: 0; font-size: clamp(36px, 5vw, 58px); font-weight: 900; line-height: 1.15; }
.page-hero h1 span { padding: 0 8px; background: linear-gradient(transparent 60%, var(--yellow) 60%); }
.page-hero p { margin: 12px 0 0; font-size: 18px; font-weight: 700; color: var(--ink-2); max-width: 40em; }
.page-hero .sticker { right: 6%; bottom: 18px; width: 150px; transform: rotate(-8deg); }

/* steps */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 86px; min-height: 80px; }
.step::before {
  counter-increment: step; content: counter(step); position: absolute; left: 22px; top: 20px;
  width: 46px; height: 46px; display: grid; place-items: center; font-size: 24px; font-weight: 900;
  border: 3px solid var(--ink); border-radius: 50%; background: var(--yellow); box-shadow: 3px 3px 0 var(--ink);
}
.step h3 { margin: 0 0 4px; font-size: 20px; }
.step p { margin: 0; color: var(--ink-2); }
kbd { font: inherit; font-weight: 900; font-size: .9em; padding: 0 8px; border: 2px solid var(--ink); border-bottom-width: 4px; border-radius: 8px; background: #fff; }

/* tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: separate; border-spacing: 0; border: 3px solid var(--ink); border-radius: 14px; overflow: hidden; background: #fff; font-variant-numeric: tabular-nums; }
th, td { padding: 10px 16px; text-align: left; border-bottom: 2px solid #e5e2f2; }
th { background: var(--ink); color: #fff; font-weight: 900; }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 900; white-space: nowrap; }

/* guide layout */
.guide { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; }
.toc { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 6px; }
.toc a { text-decoration: none; color: var(--ink); font-weight: 800; padding: 8px 14px; border: 2px solid transparent; border-radius: 12px; }
.toc a:hover { border-color: var(--ink); background: #fff; }
.guide section { scroll-margin-top: 90px; margin-bottom: 46px; }
.guide h2 { margin: 0 0 18px; }
.guide h3 { margin: 22px 0 6px; font-size: 20px; }
.guide p, .guide li { color: var(--ink-2); }
.guide ul { padding-left: 1.2em; }
.class-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 22px; align-items: center; }
.class-row img { height: 230px; width: 100%; object-fit: contain; }
.class-row h3 { margin-top: 0; }

/* news page */
.news-list { display: flex; flex-direction: column; gap: 22px; }
.news-item { scroll-margin-top: 90px; }
.news-item h2 { margin: 6px 0 10px; font-size: 24px; line-height: 1.4; }
.news-item .body p { margin: 0 0 10px; color: var(--ink-2); }
.news-item .body ul { margin: 0 0 10px; color: var(--ink-2); padding-left: 1.2em; }

/* pay page */
.pay-card { text-align: center; background: linear-gradient(180deg, #fffbe6, #fff); }
.pay-card h2 { margin: 0 0 8px; font-size: 30px; }
.pay-big { font-size: 22px; padding: 16px 40px; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 100; transform: translate(-50%, 30px); opacity: 0;
  background: var(--ink); color: #fff; font-weight: 800; padding: 12px 22px; border-radius: 999px;
  box-shadow: 4px 4px 0 var(--pink); transition: opacity .2s, transform .2s; pointer-events: none; max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* footer */
.foot { background: var(--ink); color: #d8d4f0; padding-block: 46px 30px; font-size: 14px; }
.foot-in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 30px; align-items: start; }
.foot img { width: 170px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot nav a { color: #fff; font-weight: 800; text-decoration: none; }
.foot .health { margin: 14px 0 0; line-height: 1.9; }
.age { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 12px; border: 3px solid #fff; font-size: 26px; font-weight: 900; color: #fff; background: var(--blue); }
.foot .copy { margin-top: 26px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .15); text-align: center; color: #a7a1c9; }

/* ------------------------------------------------------------------ narrow screens */
@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .brand-en { display: none; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px 16px 18px; background: #fff; border-bottom: 3px solid var(--ink); display: none;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-links a.btn-gold { margin: 8px 0 0; justify-content: center; }
  .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .cls { grid-template-columns: minmax(0, 1fr); }
  .cls-stage { height: 420px; }
  .guide { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; flex-direction: row; flex-wrap: wrap; }
  .foot-in { grid-template-columns: minmax(0, 1fr); }
  .hero-shade { background: linear-gradient(180deg, rgba(233, 246, 255, .9) 0%, rgba(233, 246, 255, .75) 55%, rgba(233, 246, 255, .35) 100%); }
  .hero .st-cassette, .page-hero .sticker { display: none; }
  .hero-logo-box .st-crown { width: 70px; right: -12px; top: -22px; }
}
@media (max-width: 520px) {
  .brand-cn { height: 26px; }
  .btn-big { font-size: 18px; padding: 12px 24px; }
  .class-row { grid-template-columns: minmax(0, 1fr); }
  .class-row img { height: 200px; }
  .step { padding-left: 74px; }
  .step::before { left: 14px; }
}
