@charset "UTF-8";

/* 海岛版：用绘本海图承载快捷搜索，网址墙仍按原规则排序。 */
body {
  --island-navy: #1b2559;
  --island-cream: #fff6e3;
  --island-ocean: #3da5d9;
  --island-gold: #ffc233;
  --island-violet: #6c4bd8;
  --island-coral: #ff6f59;
  --island-edge: color-mix(in srgb, var(--ink-air) 36%, var(--line-air));
  --island-surface: var(--paper);
  --island-hero-text: var(--wash-air);
  --island-mark: var(--accent-air);
  --island-action: color-mix(in srgb, var(--skin-accent, #a17bdf) 62%, white);
  --island-action-ink: #211830;
  --island-out: cubic-bezier(.22, 1, .36, 1);
}
body:not([data-skin]), body[data-skin=sakura] {
  --island-surface: #fff8e9;
  --island-hero-text: var(--island-navy);
  --island-mark: #6c43ab;
  --island-action: var(--island-coral);
  --island-action-ink: var(--island-navy);
  --island-edge: #b8a6c2;
  background-color: #fdf8ef;
  background-image: radial-gradient(ellipse at 96% 5%, #eae1fa 0, transparent 57%), radial-gradient(ellipse at 0 24%, #fff0cf 0, transparent 45%);
}
.topbar { min-height: 60px; }
body:not([data-skin]) .topbar, body[data-skin=sakura] .topbar { background: #fffdf7; }
.top-actions .skin-launch, .top-actions .add-button, .top-actions .icon-button { border-radius: 99px; min-height: 39px; }
.top-actions .icon-button { min-width: 39px; }

.hero.island-hero, body[data-skin] .hero.island-hero {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  align-items: center;
  min-height: 0;
  padding: 14px;
  border: 1px solid var(--island-edge);
  border-radius: 29px;
  background: var(--island-surface);
  box-shadow: 0 5px 0 color-mix(in srgb, var(--island-edge) 45%, var(--paper)), 0 15px 24px var(--sky-shadow);
}
.island-hero::after { display: none; }
.island-hero .hero-content { width: 100%; padding: 24px clamp(18px, 3.25vw, 52px) 24px clamp(15px, 3.3vw, 54px); }
.island-hero .hero-eyebrow, body[data-skin] .island-hero .hero-eyebrow { color: var(--island-mark); gap: 7px; font-size: 11px; letter-spacing: .16em; }
.island-hero .hero-eyebrow span, body[data-skin] .island-hero .hero-eyebrow span { width: auto; height: auto; background: none; font-size: 16px; line-height: 1; color: var(--island-mark); }
.island-hero h1, body[data-skin] .island-hero h1 {
  display: block;
  width: auto;
  margin: 13px 0 0;
  color: var(--island-hero-text);
  font-size: clamp(40px, 4.85vw, 75px);
  line-height: 1.12;
  letter-spacing: -.045em;
}
.island-hero h1 span, body[data-skin] .island-hero h1 span { color: var(--island-mark); }
.island-hero .hero-content > p, body[data-skin] .island-hero .hero-content > p { color: var(--island-hero-text); opacity: .84; font-size: clamp(12px, 1.1vw, 15px); margin: 14px 0 19px; }
.island-hero .search-box, body[data-skin] .island-hero .search-box {
  width: 100%;
  max-width: none;
  border: 1px solid var(--island-edge);
  border-radius: 15px;
  background: var(--paper);
  box-shadow: 0 3px 0 color-mix(in srgb, var(--island-edge) 37%, var(--paper));
}
.island-hero .search-box:focus-within { outline: 2px solid var(--island-gold); outline-offset: 2px; }
.island-hero .search-box button, body[data-skin] .island-hero .search-box button {
  border: 1px solid color-mix(in srgb, var(--island-action-ink) 60%, var(--island-action));
  color: var(--island-action-ink);
  background: var(--island-action);
}
.island-hero .search-box button:hover { filter: brightness(1.09); }
.hero-jump { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; margin-top: 9px; color: var(--island-mark); font-size: 12px; font-weight: 700; }
.hero-jump:hover { text-decoration: underline; }
.hero-jump span { display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid var(--island-edge); border-radius: 50%; }

.island-map {
  position: relative;
  isolation: isolate;
  aspect-ratio: 780 / 480;
  container-type: inline-size;
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--island-ocean) 70%, var(--island-navy));
  border-radius: 20px;
  overflow: hidden;
  background: var(--island-ocean);
}
.island-map .hero-art, .no-motion .island-map .hero-art {
  z-index: -1;
  object-fit: contain;
  object-position: center;
  transform: none;
}
.island-map .hero-art[data-custom-art] { object-fit: cover; }
body:is([data-skin=starlight], [data-skin=amethyst], [data-skin=cyber], [data-skin=aurora]) .island-map .hero-art:not([data-custom-art]) { filter: brightness(.72) saturate(.78) hue-rotate(10deg); }
.map-pin {
  position: absolute;
  left: var(--pin-x);
  top: var(--pin-y);
  transform: translate(-50%, -50%);
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 6px 12px;
  border: 1.5px solid var(--island-navy);
  border-radius: 99px;
  box-shadow: 0 3px 0 var(--island-navy);
  font-size: 13px;
  font-weight: 750;
  color: var(--island-navy);
  background: var(--island-cream);
  white-space: nowrap;
  transition: transform .2s var(--island-out), background-color .2s, box-shadow .2s;
}
.map-pin svg { width: 15px; height: 15px; stroke-width: 1.9; }
.map-pin:where(:hover, [aria-pressed=true]) { background: #ffe39b; }
.map-pin:hover { transform: translate(-50%, calc(-50% - 3px)); box-shadow: 0 6px 0 var(--island-navy); }
.map-pin:active { transform: translate(-50%, calc(-50% + 2px)); box-shadow: 0 1px 0 var(--island-navy); }
.map-pin:focus-visible { outline: 3px solid var(--island-gold); outline-offset: 3px; }
.map-code { --pin-x: 19.9%; --pin-y: 21.7%; }
.map-design { --pin-x: 81.3%; --pin-y: 25%; }
.map-animation { --pin-x: 13.8%; --pin-y: 63.5%; }
.map-paper { --pin-x: 83.3%; --pin-y: 73.1%; }
.map-caption {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  color: var(--island-cream);
  background: #1b2559e6;
  font-size: 10px;
  pointer-events: none;
}

.directory { margin-top: 30px; }
.section-heading h2 > [data-icon], body[data-skin] .section-heading h2 > [data-icon] {
  width: 29px;
  height: 29px;
  border: 1px solid var(--line-air);
  border-radius: 9px;
  color: var(--island-mark);
  background: var(--island-surface);
}
.section-heading h2 svg { width: 16px; height: 16px; }
.section-heading .count-badge { border: 1px solid var(--line-air); }
.directory-actions button { border-radius: 99px; padding-inline: 10px; }
.site-card, body[data-skin] .site-card {
  border-color: color-mix(in srgb, var(--island-edge) 55%, var(--line-air));
  border-radius: 17px;
  box-shadow: 0 3px 0 color-mix(in srgb, var(--island-edge) 36%, var(--line-air));
}
.card-main:hover .card-arrow, .card-main:focus-visible .card-arrow { transform: translate(2px, -2px); }
.card-arrow, body[data-skin] .card-arrow {
  border: 1px solid var(--line-air);
  border-radius: 50%;
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  opacity: 1;
  background: var(--paper-soft);
  color: var(--island-mark);
}
footer { font-size: 11px; }
.credit-license { opacity: .85; white-space: nowrap; }

@container (max-width: 455px) {
  .map-pin { padding-inline: 8px; gap: 4px; font-size: 12px; }
  .pin-extension { display: none; }
  .map-pin svg { width: 13px; height: 13px; }
}
@media (min-width: 761px) and (max-width: 1000px) {
  .hero.island-hero, body[data-skin] .hero.island-hero { grid-template-columns: minmax(0, 47fr) minmax(0, 53fr); }
  .island-hero .hero-content { padding-inline: 15px 23px; }
  .island-hero .search-box kbd { display: none; }
}
@media (max-width: 760px) {
  .hero.island-hero, body[data-skin] .hero.island-hero { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 9px; }
  .island-hero .hero-content { padding: 15px 15px 2px; }
  .island-hero h1, body[data-skin] .island-hero h1 { font-size: clamp(37px, 8.2vw, 56px); margin-top: 7px; }
  .island-hero h1 br { display: none; }
  .island-hero .hero-content > p, body[data-skin] .island-hero .hero-content > p { margin: 8px 0 12px; }
  .hero-jump { min-height: 37px; margin-top: 5px; }
  .island-map { border-radius: 17px; }
  .directory { margin-top: 23px; }
}
@media (max-width: 480px) {
  .top-actions .skin-launch, .top-actions .add-button, .top-actions .icon-button { min-height: 36px; width: 35px; min-width: 35px; }
  .map-pin { font-size: 11px; }
  .map-caption { font-size: 8px; right: 6px; bottom: 6px; }
  .card-arrow, body[data-skin] .card-arrow { width: 17px; height: 17px; }
  .section-heading h2 > [data-icon], body[data-skin] .section-heading h2 > [data-icon] { width: 25px; height: 25px; }
  footer > a { white-space: nowrap; }
}
@media (max-width: 360px) {
  .island-hero h1 br { display: revert; }
  .island-hero h1 span { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce), (hover: none) {
  .map-pin:hover, .map-pin:active { transform: translate(-50%, -50%); box-shadow: 0 3px 0 var(--island-navy); }
}
body.no-motion .map-pin:hover, body.no-motion .map-pin:active { transform: translate(-50%, -50%); box-shadow: 0 3px 0 var(--island-navy); }
