:root {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #172238;
  background: #f6f8fb;
  font-synthesis: none;
  --blue: #2f6fed;
  --blue-deep: #205bc9;
  --ink: #172238;
  --muted: #66738a;
  --line: #dfe5ee;
  --paper: #f6f8fb;
  --white: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}
::selection { background: #cddfff; color: var(--ink); }
header, main, footer { max-width: 1200px; margin: auto; }

header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 36px;
  border-bottom: 1px solid rgba(215, 223, 234, .85);
  background: rgba(246, 248, 251, .92);
  backdrop-filter: blur(20px);
}
.brand { display: flex; align-items: center; gap: 11px; font-size: 14px; flex-shrink: 0; }
.brand b { font-size: 28px; letter-spacing: -1.4px; line-height: 1; }
.logo {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  box-shadow: 0 7px 16px #2f6fed24;
}
.brand-phase {
  align-self: flex-start;
  margin-top: 2px;
  padding: 4px 5px;
  border: 1px solid #d4deeb;
  border-radius: 4px;
  background: #ffffffa0;
  color: #62728d;
  font: 650 7px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .4px;
}
.divider { color: #b4c0ca; margin: 0 2px; }
.brand > span:last-child { color: #66758a; }
nav { display: flex; align-items: center; gap: 27px; font-size: 12px; font-weight: 550; color: #617088; }
nav a { display: inline-flex; align-items: center; min-height: 42px; }
nav a:hover { color: var(--blue); }
nav .language-switch { justify-content: center; min-width: 34px; min-height: 30px; padding: 0 7px; border: 1px solid #d9e2ee; border-radius: 5px; background: #ffffff8c; font: 650 10px/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
main { padding: 0 36px; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 414px;
  padding: 65px 0 48px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 84% 30%, #e3edffcc, transparent 36%),
    linear-gradient(#dce5f03d 1px, transparent 1px),
    linear-gradient(90deg, #dce5f03d 1px, transparent 1px);
  background-size: auto, 72px 72px, 72px 72px;
  mask-image: linear-gradient(90deg, transparent 25%, #000 100%);
}
.hero > *:not(.hero-art) { position: relative; z-index: 1; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6d7d93;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 1.8px;
}
.eyebrow > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px #2f6fed12;
}
h1 {
  max-width: 760px;
  margin: 24px 0 20px;
  color: var(--ink);
  font-size: clamp(48px, 5.2vw, 64px);
  font-weight: 720;
  letter-spacing: -2.8px;
  line-height: 1.22;
}
h1 em { font-style: normal; color: var(--blue); }
html[lang="en"] h1 { max-width: 820px; font-size: clamp(44px, 4.8vw, 60px); }
.hero p { max-width: 570px; margin: 0; color: #68788f; font-size: 14px; line-height: 1.95; }
.hero-foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 27px; }
.hero-foot > span {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  padding: 5px 10px;
  border: 1px solid #dfe6ef;
  border-radius: 6px;
  background: #ffffffb5;
  color: #75849a;
  font-size: 10px;
}
.hero-art { position: absolute; inset: 38px 0 0 57%; display: grid; place-items: center; pointer-events: none; }
.art-core {
  width: 142px;
  height: 142px;
  display: grid;
  place-items: center;
  border: 1px solid #d5e1f0;
  border-radius: 36px;
  background: linear-gradient(145deg, #fff, #eaf1fc);
  box-shadow: 24px 32px 70px #2f5b9012;
  color: var(--blue);
  font-size: 105px;
  font-weight: 650;
  line-height: 1;
  transform: rotate(-10deg);
}
.art-orbit { position: absolute; width: 340px; height: 190px; border: 1px solid #bdcee4; border-radius: 50%; transform: rotate(-28deg); }
.hero-art > span { position: absolute; right: 19%; top: 8%; color: #89a5cd; font-size: 25px; }
.hero-art i { position: absolute; left: 13%; bottom: 20%; color: #8da9d0; font-size: 38px; font-style: normal; }

.collection { padding-top: 39px; border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
h2 { margin: 10px 0 0; font-size: 26px; font-weight: 650; letter-spacing: -.7px; }
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 310px;
  min-height: 45px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: #8a99ac;
  transition: border-color .16s, box-shadow .16s;
}
.search:focus-within { border-color: #9ebdf3; box-shadow: 0 0 0 4px #2f6fed0d; }
.search input { width: 100%; min-width: 0; border: 0; outline: 0; background: none; color: var(--ink); font-size: 12px; }
.search input::placeholder { color: #97a3b3; }
.categories { display: flex; flex-wrap: wrap; gap: 7px; margin: 25px 0 24px; }
.categories button {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #6d7d93;
  font-size: 11px;
  font-weight: 550;
}
.categories button:hover { background: #edf2f8; color: var(--ink); }
.categories button[aria-pressed=true] { border-color: #cfdefb; background: #eaf2ff; color: var(--blue-deep); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card {
  position: relative;
  min-width: 0;
  min-height: 246px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid #dde5ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px #263b5904;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.card:hover { transform: translateY(-3px); border-color: #c6d8f1; box-shadow: 0 16px 34px #263b590b; }
.card-head { display: flex; align-items: flex-start; gap: 13px; min-width: 0; }
.card-head > div { min-width: 0; }
.plugin-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 45px;
  height: 45px;
  border: 1px solid #d6e3f5;
  border-radius: 12px;
  background: #eff5ff;
  color: var(--blue);
}
.plugin-icon svg { width: 22px; height: 22px; }
.card h3 { margin: 1px 0 0; font-size: 15px; font-weight: 650; line-height: 1.5; overflow-wrap: anywhere; }
.official { display: block; margin-top: 5px; color: #8492a6; font-size: 9px; letter-spacing: .2px; }
.card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 18px 0 22px;
  color: #718096;
  font-size: 12px;
  line-height: 1.85;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid #edf1f6; color: #8795a8; font-size: 10px; }
.card-foot > span { min-width: 0; overflow-wrap: anywhere; }
.card-foot button { flex-shrink: 0; min-height: 36px; padding: 6px 0 6px 10px; border: 0; background: transparent; color: var(--blue-deep); font-size: 11px; font-weight: 650; white-space: nowrap; }
.card-foot button:hover { color: var(--blue); }

.guide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  margin-top: 58px;
  padding: 38px 40px;
  border: 1px solid #dfe6ef;
  border-radius: 16px;
  background: #fff;
  scroll-margin-top: 100px;
}
.guide p { max-width: 390px; color: #78889d; font-size: 12px; line-height: 1.95; }
.guide ol { margin: 0; padding: 0; list-style: none; counter-reset: guide-step; }
.guide li { position: relative; display: grid; grid-template-columns: 31px 1fr; column-gap: 12px; padding-bottom: 18px; counter-increment: guide-step; }
.guide li:last-child { padding-bottom: 0; }
.guide li::before {
  content: "0" counter(guide-step);
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border: 1px solid #d6e3f5;
  border-radius: 50%;
  background: #f2f7ff;
  color: var(--blue);
  font: 9px ui-monospace, SFMono-Regular, Consolas, monospace;
}
.guide li b { display: block; color: #34465e; font-size: 12px; font-weight: 650; }
.guide li span { display: block; margin-top: 4px; color: #7b8a9e; font-size: 11px; line-height: 1.8; }

footer { display: flex; align-items: center; gap: 24px; margin-top: 54px; padding: 29px 36px 34px; border-top: 1px solid var(--line); color: #8492a5; font-size: 10px; }
footer .brand { color: #3e5068; font-size: 22px; font-weight: 700; }
footer small { margin-left: auto; max-width: 520px; font-size: 9px; line-height: 1.7; text-align: right; }

dialog {
  width: min(710px, calc(100vw - 32px));
  max-height: 88dvh;
  padding: 27px;
  overflow: auto;
  border: 1px solid #dbe4ef;
  border-radius: 17px;
  background: #fbfcfe;
  color: var(--ink);
  box-shadow: 0 30px 100px #17223838;
}
dialog::backdrop { background: #17223870; backdrop-filter: blur(5px); }
.dialog-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.dialog-top button { width: 40px; height: 40px; padding: 0; border: 1px solid #dfe6ef; border-radius: 9px; background: #fff; color: #657a94; font-size: 23px; line-height: 1; }
dialog #detail-body > .plugin-icon { margin-bottom: 15px; }
dialog h2 { margin: 10px 0 12px; font-size: 25px; line-height: 1.4; }
dialog p { color: #6f8096; font-size: 12px; line-height: 1.9; }
dialog dl { display: grid; grid-template-columns: 104px 1fr; gap: 12px 14px; margin: 20px 0; padding: 19px; border: 1px solid var(--line); border-radius: 11px; background: #fff; font-size: 11px; }
dialog dt { color: #8996a8; }
dialog dd { margin: 0; overflow-wrap: anywhere; color: #4e6179; }
dialog details { margin: 20px 0; color: #62778f; font-size: 12px; }
dialog summary { min-height: 38px; cursor: pointer; }
dialog pre { padding: 15px; overflow: auto; border-radius: 9px; background: #edf2f8; white-space: pre-wrap; overflow-wrap: anywhere; font: 11px/1.9 ui-monospace, SFMono-Regular, Consolas, monospace; }
.primary { min-height: 44px; padding: 11px 18px; border: 0; border-radius: 9px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 650; }
.primary:hover { background: var(--blue-deep); }
.detail-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 22px; }
.detail-actions a { display: inline-flex; align-items: center; min-height: 40px; color: #597797; font-size: 11px; }
#status:empty { display: none; }
#status { color: #667f98; font-size: 12px; }
.download-status { min-height: 20px; color: #667f98; font-size: 11px; }
.original-note { padding: 10px 12px; border: 1px solid #e0e7f0; border-radius: 8px; background: #f2f5fa; }
.resource { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.resource > a { color: var(--blue); font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.resource p { overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-art { inset: 62px -80px 0 55%; opacity: .65; }
  .guide { gap: 34px; }
  footer { flex-wrap: wrap; }
  footer small { width: 100%; max-width: none; margin: 0; text-align: left; }
}

@media (min-width: 601px) and (max-width: 760px) {
  header { padding: 0 24px; gap: 14px; }
  header .divider, header .brand > span:last-child { display: none; }
  nav { gap: 16px; }
}

@media (max-width: 600px) {
  html { scroll-padding-top: 82px; }
  header { height: 70px; padding: 0 20px; gap: 14px; }
  header .brand { gap: 8px; }
  header .brand b { font-size: 25px; }
  header .logo { width: 36px; height: 36px; border-radius: 9px; font-size: 27px; }
  header .brand-phase { font-size: 6px; padding: 3px 4px; }
  header .divider, header .brand > span:last-child { display: none; }
  nav { gap: 11px; font-size: 10px; }
  nav a:first-child, nav a:nth-child(2) { display: none; }
  main { padding: 0 20px; }
  .hero { min-height: 390px; padding: 44px 0 37px; }
  .hero::before { background-size: auto, 56px 56px, 56px 56px; }
  .eyebrow { font-size: 8px; letter-spacing: 1.4px; }
  h1 { margin-top: 22px; font-size: clamp(34px, 9.8vw, 42px); letter-spacing: -1.7px; line-height: 1.25; }
  html[lang="en"] h1 { font-size: clamp(32px, 9vw, 39px); letter-spacing: -1.5px; }
  .hero p { max-width: 330px; font-size: 12px; line-height: 1.95; }
  .hero-art { inset: 80px -170px 0 36%; opacity: .18; }
  .hero-foot { gap: 7px; margin-top: 23px; }
  .hero-foot > span { min-height: 29px; padding: 4px 8px; font-size: 8px; }
  .collection { padding-top: 31px; }
  .section-heading { align-items: stretch; flex-direction: column; gap: 19px; }
  h2 { font-size: 23px; }
  .search { width: 100%; min-height: 46px; }
  .categories { gap: 5px; margin: 20px 0; }
  .categories button { min-height: 38px; padding: 8px 10px; font-size: 10px; }
  .grid { grid-template-columns: 1fr; gap: 14px; }
  .card { min-height: 0; padding: 21px; }
  .card p { margin-bottom: 18px; }
  .card-foot button { min-height: 40px; }
  .guide { grid-template-columns: 1fr; gap: 23px; margin-top: 40px; padding: 26px 22px; }
  .guide p { margin-bottom: 0; }
  footer { gap: 12px 18px; margin-top: 39px; padding: 25px 20px 29px; }
  footer small { font-size: 8px; }
  dialog { width: calc(100vw - 24px); max-height: 92dvh; padding: 20px; border-radius: 14px; }
  dialog dl { grid-template-columns: 79px 1fr; gap: 10px; padding: 14px; font-size: 10px; }
  dialog h2 { font-size: 22px; }
  .detail-actions { gap: 12px; }
}

@media (max-width: 359px) {
  main { padding: 0 16px; }
  header { padding: 0 16px; }
  h1 { font-size: 34px; }
  .hero-foot > span { font-size: 7px; }
  .card { padding: 19px; }
  .card-foot { align-items: flex-start; }
}

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