:root {
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #171717;
  background: #fff;
  --ink: #171717;
  --muted: #595959;
  --accent: #ff702d;
  --accent-dark: #a63b0d;
  --surface: #f6f6f6;
  --border: #e5e5e5;
  --radius: 3px;
  --section-space: clamp(3rem, 6vw, 6rem);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
[id] { scroll-margin-top: 1.5rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.symbols { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.shell { width: min(calc(100% - 4rem), 1200px); margin-inline: auto; }
.grid { display: grid; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: .68rem 1.2rem;
  background: var(--accent);
  color: #17100c;
  font-size: .875rem;
  font-weight: 650;
  white-space: nowrap;
  width: fit-content;
}
.button:hover { background: #ff905d; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #f7f7f7;
  text-align: center;
  background: radial-gradient(ellipse 47% 52% at 50% 80%, #35251e, #181615 62%, #101010);
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 30% -15% -18%;
  background:
    repeating-linear-gradient(90deg, #b39c8a38 0 1px, transparent 1px 4rem),
    repeating-linear-gradient(#b39c8a30 0 1px, transparent 1px 4rem),
    linear-gradient(transparent, #d57d4230, transparent);
  transform: perspective(340px) rotateX(44deg) scale(1.35);
  mask-image: radial-gradient(ellipse, #000, transparent 70%);
  pointer-events: none;
}
.hero-content { padding-top: clamp(2.75rem, 5vw, 5rem); }
.hero-content > p:first-child { color: #ded6d0; font-size: .9rem; letter-spacing: .1em; }
.hero h1 { font-size: clamp(2.5rem, 4.5vw, 4.5rem); line-height: 1.14; margin: .9rem auto 1rem; font-weight: 680; text-wrap: balance; }
.hero h1 span { color: #ff8b51; }
.hero h1 + p { color: #d2cecb; font-size: clamp(.9rem, 1.3vw, 1.15rem); margin-inline: auto; line-height: 1.7; }
.hero .button { margin-top: 1.45rem; }
.chip-showcase { padding-bottom: 2rem; }
.chip-viewer {
  width: min(90%, 38rem);
  height: clamp(15rem, 26vw, 23rem);
  margin-inline: auto;
  display: grid;
  place-items: center;
  perspective: 65rem;
  touch-action: none;
  user-select: none;
  cursor: grab;
}
.chip-viewer:active { cursor: grabbing; }
.chip-model {
  --tilt: 53deg;
  --spin: -34deg;
  scale: 1.52;
  position: relative;
  width: 0;
  height: 0;
  transform: rotateX(var(--tilt)) rotateZ(var(--spin));
  transform-style: preserve-3d;
  pointer-events: none;
}
.chip-part {
  position: absolute;
  width: var(--size);
  height: var(--size);
  left: calc(var(--size) / -2);
  top: calc(var(--size) / -2);
  transform: translateZ(var(--elevation));
  transform-style: preserve-3d;
}
.chip-part--board { --size: 12rem; --depth: .45rem; --elevation: 0rem; --edge: #765646; --side: #2b201c; }
.chip-part--package { --size: 8.25rem; --depth: .82rem; --elevation: .64rem; --edge: #7d7771; --side: #282725; }
.chip-part--die { --size: 5.45rem; --depth: .37rem; --elevation: 1.23rem; --edge: #a36b49; --side: #4a2c22; }
.chip-face { position: absolute; background: linear-gradient(var(--edge), var(--side)); border: 1px solid var(--edge); }
.chip-face--top, .chip-face--bottom { inset: 0; }
.chip-face--top { transform: translateZ(calc(var(--depth) / 2)); }
.chip-face--bottom { transform: rotateY(180deg) translateZ(calc(var(--depth) / 2)); }
.chip-face--front, .chip-face--back { width: 100%; height: var(--depth); top: calc(50% - var(--depth) / 2); }
.chip-face--front { transform: rotateX(-90deg) translateZ(calc(var(--size) / 2)); }
.chip-face--back { transform: rotateX(90deg) translateZ(calc(var(--size) / 2)); }
.chip-face--left, .chip-face--right { width: var(--depth); height: 100%; left: calc(50% - var(--depth) / 2); }
.chip-face--left { transform: rotateY(-90deg) translateZ(calc(var(--size) / 2)); }
.chip-face--right { transform: rotateY(90deg) translateZ(calc(var(--size) / 2)); }
.chip-part--board .chip-face--top {
  background:
    repeating-linear-gradient(90deg, transparent 0 .54rem, #fb975e80 .54rem .60rem) center / 80% 100% no-repeat,
    repeating-linear-gradient(transparent 0 .54rem, #fb975e80 .54rem .60rem) center / 100% 80% no-repeat,
    linear-gradient(135deg, #48302a, #1e1c1b 55%, #5b3220);
  border: 1px solid #ffaa76;
  box-shadow: 0 0 1.4rem #ff743f60, inset 0 0 1rem #ff823e35;
}
.chip-part--package .chip-face--top {
  background: linear-gradient(130deg, #8e8985, #474643 35%, #202020 70%, #51473f);
  border: 1px solid #b8aaa0;
  box-shadow: inset 0 0 0 .28rem #2b2724, inset 0 0 0 .34rem #9b8272;
}
.chip-part--die .chip-face--top {
  display: grid;
  place-items: center;
  color: #fff3e9;
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-shadow: 0 1px .3rem #201812;
  background:
    repeating-linear-gradient(90deg, transparent 0 .25rem, #ffcdab30 .25rem .29rem),
    repeating-linear-gradient(transparent 0 .25rem, #ffcdab30 .25rem .29rem),
    linear-gradient(135deg, #9e633f, #372720 57%, #7d4830);
  border: 1px solid #f7b789;
  box-shadow: inset 0 0 .7rem #ffc69c59;
}
.chip-part--die small { display: block; margin-top: .2rem; font-size: .39rem; letter-spacing: .13em; }
.chip-controls { display: flex; align-items: center; justify-content: center; gap: .8rem; }
.chip-controls p { color: #c7bfba; font-size: .75rem; }
.chip-reset { color: #eee; background: #ffffff0a; border: 1px solid #ffffff40; border-radius: var(--radius); padding: .35rem .65rem; font-size: .75rem; }
.chip-reset:hover { border-color: var(--accent); color: var(--accent); }
@media (pointer: coarse) { .chip-keyboard { display: none; } }

.band { background: var(--surface); }
.section { padding-block: var(--section-space); }
.section-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: .4rem 1rem; margin-bottom: 1.55rem; }
.section-header h2 { font-size: clamp(1.5rem, 2.45vw, 2.125rem); font-weight: 700; line-height: 1.25; }
.section-header p { grid-column: 1; grid-row: 2; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.section-header a { grid-column: 2; grid-row: 1; color: var(--muted); font-size: .84rem; white-space: nowrap; }
.section-header a:hover { color: var(--accent-dark); }
.section-header a span { color: var(--accent-dark); margin-left: .3rem; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; }
.card h3 { font-size: 1.15rem; line-height: 1.35; }
.card p { font-size: .88rem; line-height: 1.65; margin-top: .35rem; color: var(--muted); }
.card-body { padding: 1rem 1.15rem 1.2rem; }

.courses { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: .8rem; }
.course { position: relative; isolation: isolate; display: flex; align-items: flex-end; background: #211c1a; color: #fff; min-height: 15rem; }
.course::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(0deg, #080706f5, #100c0a83 55%, #16110d12); }
.course-image, .course-image img { position: absolute; inset: 0; width: 100%; height: 100%; }
.course-image { z-index: -2; }
.course-image img { object-fit: cover; filter: saturate(.7); }
.course .card-body { width: 100%; padding: 1.05rem 1.2rem; }
.course p { color: #e5dfda; }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: .7rem 0 0; list-style: none; }
.tags li { color: #f7e3d8; border: 1px solid #ffb38250; border-radius: var(--radius); padding: .16rem .36rem; font-size: .7rem; }
@media (min-width: 950px) {
  .courses { grid-template-columns: 1.72fr 1fr; grid-template-rows: repeat(3, minmax(9.6rem, auto)); }
  .courses .course { min-height: 0; }
  .courses .course:first-child { grid-row: span 3; }
  .courses .course:first-child .card-body { padding: 2.25rem; }
  .courses .course:first-child h3 { font-size: 2.2rem; }
  .courses .course:not(:first-child)::after { background: linear-gradient(90deg, #0b0908f5, #140e0bbd 60%, #16110d32); }
  .courses .course:not(:first-child) img { width: 72%; left: auto; }
}

.banner { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius); color: #fff; background: #171513; }
.banner::before { content: ""; position: absolute; z-index: -1; inset: 0; background-repeat: no-repeat; background-size: cover; }
.live-banner { min-height: 19rem; display: flex; align-items: center; }
.live-banner::before { background-image: linear-gradient(90deg, #14110f 5%, #14110fee 33%, #14110f15 82%), url("assets/live.webp"); background-position: center, right center; background-size: cover, 66% auto; }
.live-copy { padding: clamp(1.4rem, 4vw, 3.75rem); }
.badge { display: inline-block; background: var(--accent); color: #17100c; border-radius: var(--radius); padding: .19rem .5rem; font-size: .75rem; font-weight: 700; }
.live-copy h3 { font-size: clamp(1.8rem, 3.4vw, 3rem); line-height: 1.2; margin: .6rem 0; }
.live-copy p { font-size: 1.05rem; color: #e0dbd6; }
.live-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1.15rem; margin-top: 1.2rem; font-size: .86rem; }

.training-grid { grid-template-columns: 1.45fr 1fr; grid-template-rows: 1fr 1fr; gap: .8rem; }
.training-feature { grid-row: span 2; min-height: 23rem; padding: clamp(1.4rem, 3vw, 2.8rem); display: flex; align-items: flex-end; }
.training-feature::before {
  inset-inline-start: 38%;
  background-image: url("assets/training.webp");
  background-position: right center;
  mask-image: linear-gradient(90deg, transparent, #000a 32%, #000 75%);
}
.training-feature h3, .exam-banner h2 { font-size: clamp(1.5rem, 2.6vw, 2.3rem); line-height: 1.2; }
.training-feature p, .exam-banner p { color: #e8e0db; margin-top: .65rem; font-size: .95rem; line-height: 1.6; }
.training-feature .button { margin-top: 1.25rem; }
.training-card { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.3rem; border: 0; text-align: left; background: #1a1715; color: #fff; }
.training-card img { position: absolute; z-index: -2; inset: 0 0 0 auto; width: 58%; height: 100%; object-fit: cover; filter: saturate(.7); }
.training-card::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #191512 32%, #19151286 75%, #19151232); }
.training-card strong { display: block; font-size: 1.13rem; }
.training-card small { display: block; color: #ded8d3; margin-top: .5rem; font-size: .85rem; line-height: 1.55; }
.training-card b { color: var(--accent); font-size: 1.5rem; }
.training-card:hover b { color: #fff; }
.exam-banner { min-height: 10.5rem; display: flex; gap: 1.25rem; align-items: center; padding: 1.25rem clamp(1.25rem, 4vw, 3rem); margin-bottom: var(--section-space); }
.exam-banner::before {
  inset-inline-start: 47%;
  background-image: linear-gradient(#16131160, #16131160), url("assets/exam.webp");
  background-position: center;
  mask-image: linear-gradient(90deg, transparent, #000 35%, #000 72%, transparent);
}
.exam-banner img { width: 5rem; height: 5rem; object-fit: contain; }
.exam-banner .button { margin-left: auto; }

.experts { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .8rem; }
.experts img { width: 100%; aspect-ratio: 1.3; object-fit: cover; filter: saturate(.72); }
.experts .card p:first-of-type { color: var(--accent-dark); font-weight: 600; }
.experts .card p:last-of-type { font-size: .82rem; }

.community > section + section { margin-top: clamp(2.5rem, 5vw, 4rem); }
.feed { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.feed article { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.feed img { width: 100%; aspect-ratio: 2.1; object-fit: cover; filter: saturate(.82); }
.feed article > div { padding: 1.15rem; }
.feed h3 { font-size: 1rem; line-height: 1.5; }
.feed p, .feed time, .feed small { font-size: .82rem; color: var(--muted); line-height: 1.55; }
.feed p { margin: .35rem 0; }
.feed time { display: block; margin-top: .7rem; }
.topics article { display: flex; align-items: center; gap: .65rem; min-height: 6.25rem; padding: .9rem; background: var(--surface); border-color: transparent; }
.topics article > div { padding: 0; }
.topics svg { width: 1.65rem; height: 1.65rem; color: var(--accent-dark); flex-shrink: 0; }
.topics small { margin-left: auto; white-space: nowrap; }
.topics small::after { content: " ›"; margin-left: .2rem; }
.enterprise {
  display: grid;
  place-items: center;
  min-height: clamp(12rem, 24vw, 22rem);
  padding: 2rem 1rem;
  margin-bottom: var(--section-space);
  border-radius: var(--radius);
  color: #fff;
  text-align: center;
  background: linear-gradient(90deg, #171311cf, #17131160, #171311a0), url("assets/fab.webp") center / cover #171311;
}
.enterprise h2 { font-size: clamp(1.6rem, 3vw, 3rem); font-weight: 600; line-height: 1.35; }
dialog { border: 1px solid var(--border); border-radius: var(--radius); width: min(90%, 27rem); padding: 2rem; color: var(--ink); box-shadow: 0 1rem 4rem #0004; }
dialog::backdrop { background: #101010b8; }
dialog h2 { padding-right: 1.3rem; font-size: 1.4rem; }
dialog p { color: var(--muted); margin: .8rem 0 1.4rem; }
.inquiry-contact { font-style: normal; line-height: 1.7; overflow-wrap: anywhere; }
.inquiry-contact a { color: var(--accent-dark); text-decoration: underline; }
.close { position: absolute; top: .45rem; right: .65rem; border: 0; background: transparent; font-size: 1.7rem; }

@media (max-width: 920px) {
  .courses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .experts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .topics { grid-template-columns: 1fr; }
  .topics article { min-height: 4.5rem; }
}
@media (max-width: 600px) {
  .shell { width: calc(100% - 2rem); }
  .hero-content { padding-top: 2.6rem; }
  .hero h1 { font-size: clamp(1.9rem, 8vw, 2.7rem); max-width: 12em; }
  .hero h1 + p { max-width: 24em; }
  .chip-viewer { height: 13rem; }
  .chip-model { scale: .96; }
  .chip-showcase { padding-bottom: 1.6rem; }
  .section-header { margin-bottom: 1.05rem; }
  .section-header a, .section-header p { font-size: .79rem; }
  .courses { gap: .55rem; }
  .course { min-height: 14.25rem; }
  .course .card-body { padding: .85rem .62rem; }
  .card h3 { font-size: .98rem; }
  .card p { font-size: .78rem; }
  .tags { gap: .25rem; margin-top: .5rem; }
  .tags li { font-size: .65rem; }
  .live-banner { min-height: 17rem; }
  .live-banner::before { background-image: linear-gradient(90deg, #14110ff0, #14110f9e), url("assets/live.webp"); background-size: cover; }
  .live-meta { flex-direction: column; align-items: flex-start; }
  .training-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .training-feature { grid-row: auto; min-height: 17rem; }
  .training-card { min-height: 7rem; }
  .exam-banner { display: grid; grid-template-columns: auto 1fr; gap: .65rem; }
  .exam-banner img { width: 3rem; height: 3rem; }
  .exam-banner h2 { font-size: 1.24rem; }
  .exam-banner p { font-size: .8rem; }
  .exam-banner .button { grid-column: 2; margin-left: 0; }
  .experts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .experts .card-body { padding: .8rem; }
  .feed { grid-template-columns: 1fr; }
}
