@charset "UTF-8";

:root {
  color-scheme: dark;
  --background: #15171b;
  --surface: #202329;
  --border: #363b45;
  --text: #f5f6f8;
  --muted: #b8bfcb;
  --accent: #8cbaff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  font-size: 18px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; }
::selection { background: var(--accent); color: var(--background); }
.page { width: min(1120px, calc(100% - 96px)); margin: 0 auto; }
.skip-link { position: fixed; top: 12px; left: 20px; z-index: 10; padding: 8px 16px; background: var(--accent); color: #17263c; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }

.header { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--border); }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { position: relative; width: 38px; height: 38px; background: var(--accent); border-radius: 10px; transform: rotate(-7deg); flex-shrink: 0; }
.brand-mark span { position: absolute; background: #17263c; border-radius: 1px; }
.brand-mark span:first-child { width: 19px; height: 6px; left: 9px; top: 9px; }
.brand-mark span:nth-child(2) { width: 6px; height: 20px; left: 9px; top: 9px; }
.brand-mark span:last-child { width: 9px; height: 9px; left: 19px; top: 20px; }
.brand-name { font-family: Bahnschrift, sans-serif; font-size: 30px; font-weight: 700; letter-spacing: -1px; line-height: 1; }
.brand-name > span { color: var(--accent); }
.brand-label { padding-left: 17px; margin-left: 5px; border-left: 1px solid var(--border); font-size: 17px; color: var(--muted); }
.header-note { font-size: 15px; color: var(--muted); }

.intro { padding: 58px 0 44px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 16px; color: var(--muted); font-size: 15px; letter-spacing: 1px; }
.eyebrow > span { width: 16px; height: 3px; border-radius: 2px; background: var(--accent); }
h1 { margin: 0; font-size: clamp(34px, 4vw, 50px); line-height: 1.45; letter-spacing: -1px; font-weight: 700; }
h1 > span { color: var(--accent); }
.intro-description { margin: 15px 0 0; font-size: 18px; color: var(--muted); }

.section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 19px; gap: 20px; }
.section-heading h2 { font-size: 22px; font-weight: 500; margin: 0; }
.section-heading > span { font-size: 15px; color: var(--muted); }
.tool-card { display: grid; grid-template-columns: 46% 54%; overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.tool-art { position: relative; overflow: hidden; isolation: isolate; background: #232c3a; }
.tool-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #0c0f16d9, transparent 60%); z-index: -1; }
.tool-art img { display: block; position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 74% center; z-index: -2; }
.art-label { position: absolute; left: 30px; bottom: 23px; display: flex; flex-direction: column; color: #fff; }
.art-label > span:first-child { font-family: Bahnschrift, sans-serif; font-size: 29px; font-weight: 600; letter-spacing: 2px; line-height: 1.4; }
.art-label > span:last-child { font-size: 15px; letter-spacing: 4px; color: #e2e8f3; }
.tool-content { padding: 35px 40px 37px; }
.game-label { display: flex; align-items: center; gap: 8px; font-size: 16px; color: var(--accent); margin: 0 0 9px; }
.game-label > span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.tool-content h3 { margin: 0 0 13px; font-size: 32px; line-height: 1.5; letter-spacing: .5px; }
.tool-description { font-size: 18px; color: var(--muted); margin: 0; line-height: 1.9; }
.tool-directions { display: flex; flex-wrap: wrap; gap: 10px; margin: 21px 0 25px; }
.tool-directions > span { font-size: 15px; color: #d7dfed; padding: 4px 10px; background: #282e38; border: 1px solid #3d4656; border-radius: 5px; }
.tool-button { display: inline-flex; align-items: center; justify-content: center; gap: 37px; min-height: 52px; padding: 10px 24px; border-radius: 7px; background: var(--accent); color: #17263c; font-size: 18px; font-weight: 600; transition: background .18s, transform .18s; }
.tool-button:hover { background: #abd0ff; transform: translateY(-2px); }
.tool-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tool-note { display: flex; align-items: flex-start; gap: 8px; margin: 17px 0 0; font-size: 14px; color: var(--muted); }
.tool-note svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 4px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }

.footer { margin-top: 60px; padding: 23px 0 26px; display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--border); font-size: 14px; color: #9fa8b8; }
.footer p { margin: 0; }
.footer p > span { padding: 0 7px; }

@media (max-width: 1000px) {
  .page { width: calc(100% - 64px); }
  .tool-content { padding: 30px; }
  .tool-content h3 { font-size: 29px; }
  .tool-description { font-size: 17px; }
  .desktop-break { display: none; }
}

@media (max-width: 700px) {
  .page { width: calc(100% - 40px); }
  .header { min-height: 85px; gap: 12px; }
  .brand { gap: 10px; }
  .brand-name { font-size: 27px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-label { font-size: 15px; padding-left: 12px; margin-left: 1px; }
  .header-note { display: none; }
  .intro { padding: 38px 0 33px; }
  .eyebrow { font-size: 14px; margin-bottom: 15px; }
  h1 { font-size: clamp(29px, 8.8vw, 42px); line-height: 1.5; letter-spacing: 0; }
  h1 > span { display: block; }
  .intro-description { font-size: 17px; margin-top: 12px; }
  .section-heading { margin-bottom: 15px; }
  .section-heading h2 { font-size: 21px; }
  .section-heading > span { font-size: 14px; }
  .tool-card { grid-template-columns: 1fr; border-radius: 12px; }
  .tool-art { height: 210px; }
  .tool-art img { object-position: 70% center; }
  .art-label { left: 22px; bottom: 17px; }
  .art-label > span:first-child { font-size: 26px; }
  .art-label > span:last-child { font-size: 14px; }
  .tool-content { padding: 25px 24px 28px; }
  .game-label { font-size: 15px; }
  .tool-content h3 { font-size: 28px; margin-bottom: 11px; }
  .tool-description { font-size: 17px; line-height: 1.85; }
  .tool-directions { gap: 8px; margin: 19px 0 23px; }
  .tool-directions > span { font-size: 14px; padding: 4px 8px; }
  .tool-button { width: 100%; justify-content: space-between; min-height: 52px; font-size: 18px; padding: 10px 20px; }
  .tool-note { font-size: 14px; }
  .footer { flex-direction: column; gap: 5px; margin-top: 37px; padding: 21px 0; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tool-button { transition: none; }
  .tool-button:hover { transform: none; }
}
