@charset "UTF-8";

/* 星屿空港：结构不依赖皮肤；只从皮肤继承颜色。 */
body {
  --paper: var(--skin-surface, #fff);
  --ink-air: var(--skin-ink, #342859);
  --accent-air: var(--skin-accent-deep, #7250bc);
  --wash-air: var(--skin-hero-text, #342859);
  --line-air: var(--skin-line, #e6deef);
  --muted-air: color-mix(in srgb, var(--ink-air) 72%, var(--paper));
  --paper-soft: var(--skin-surface-soft, #f8f6ff);
  --sky-shadow: var(--skin-shadow, #67508721);
  --mono: "Aptos Mono", Consolas, monospace;
}

body[data-skin], body {
  background-image: radial-gradient(ellipse at 86% 8%, color-mix(in srgb, var(--skin-accent, #bba8f1) 9%, transparent), transparent 55%);
  background-repeat: no-repeat;
  background-size: 100% 720px;
}

.topbar { min-height: 67px; padding-block: 10px; }
.brand { gap: 11px; font-size: 19px; letter-spacing: .04em; }
.brand-mark { width: 35px; height: 37px; border-radius: 12px; font-size: 29px; }
.brand small { font: 9px/1.1 var(--mono); letter-spacing: .26em; margin-top: 3px; }
.top-actions { gap: 9px; }
.top-actions .skin-launch, .top-actions .add-button, .top-actions .icon-button {
  min-height: 36px;
  border: 1px solid var(--line-air);
  border-radius: 11px;
}
.top-actions .icon-button { min-width: 36px; }
.top-actions .skin-launch { padding: 6px 11px; }
.top-actions .add-button { padding: 6px 12px; }
main { padding-top: 21px; }

.hero { border-radius: 24px; min-height: 322px; height: auto; display: flex; align-items: center; }
.hero-art { object-position: center 50%; }
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 9px;
  border: 1px solid #fff5;
  border-radius: 17px;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, #000 65%);
}
.hero .hero-wash, body[data-skin] .hero .hero-wash {
  background: linear-gradient(92deg, var(--skin-hero-wash, #f9f4fdf8) 2%, var(--skin-hero-wash, #f9f4fdf8) 26%, var(--skin-hero-mid, #f4e7f6d8) 42%, transparent 76%);
}
.hero-content { z-index: 1; width: min(58%, 700px); max-width: none; padding: 35px 0 35px clamp(27px, 4vw, 63px); }
.hero-eyebrow { gap: 10px; font-size: 10px; font-weight: 700; letter-spacing: .19em; }
.hero-eyebrow span { display: inline-block; width: 20px; height: 1px; background: currentColor; }
.hero h1 {
  display: flex;
  width: max-content;
  align-items: center;
  margin: 7px 0 4px;
  font-family: "Songti SC", "Noto Serif CJK SC", SimSun, serif;
  font-size: clamp(47px, 5.6vw, 84px);
  font-weight: 800;
  line-height: 1.17;
  letter-spacing: .015em;
}
body[data-skin] .hero h1 span { color: color-mix(in srgb, var(--accent-air) 86%, var(--wash-air)); }
.hero h1 i { align-self: flex-start; margin: .44em 0 0 .45em; font: normal 23px/1 system-ui; color: var(--skin-accent, #9e78d0); }
.hero .hero-content > p, body[data-skin] .hero .hero-content > p { margin: 10px 0 22px; color: color-mix(in srgb, var(--wash-air) 81%, transparent); font-size: 13px; }
.hero .search-box { height: 56px; max-width: 515px; border-radius: 14px; padding: 5px 6px 5px 12px; }
.hero .search-box select { width: 89px; font-size: 12px; }
.hero .search-box input { font-size: 13px; }
.hero .search-box button { width: 43px; height: 43px; border-radius: 10px; }
.hero .search-box button svg { width: 20px; height: 20px; }
.quick-search { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 13px; }
.quick-label { font-size: 11px; color: var(--wash-air); opacity: .8; margin-right: 1px; }
.quick-search button {
  min-height: 29px;
  border: 1px solid color-mix(in srgb, var(--line-air) 78%, var(--accent-air));
  border-radius: 99px;
  background: color-mix(in srgb, var(--paper) 79%, transparent);
  padding: 2px 11px;
  color: var(--ink-air);
  font-size: 11px;
}
.quick-search button:hover, .quick-search button[aria-pressed=true] { border-color: var(--accent-air); color: var(--accent-air); }
.hero-orbit {
  position: absolute;
  width: clamp(170px, 25%, 370px);
  height: auto;
  inset: 50% 11% auto auto;
  transform: translateY(-50%);
  color: #fff3fe;
  stroke-width: .8;
  opacity: .86;
  filter: drop-shadow(0 1px 5px #5a3f77c9);
  pointer-events: none;
}
.orbit-lights { fill: currentColor; }
.hero-coordinate {
  padding: 6px 10px;
  align-items: center;
  background: #281d45ae;
  border: 1px solid #fff4;
  border-radius: 99px;
  color: #fff;
  font-size: 10px;
  letter-spacing: .1em;
}
.hero-coordinate b { opacity: .78; font-size: 12px; line-height: 1; font-weight: 400; }

.directory { margin-top: 33px; scroll-margin-top: 0; }
.section-heading { align-items: center; margin-bottom: 15px; }
.section-heading h2 { min-width: 0; gap: 9px; font-size: 22px; letter-spacing: .01em; }
.section-heading h2 > [data-icon] { color: var(--accent-air); }
.section-heading .count-badge { border-radius: 7px; padding: 3px 8px; font: 12px/1.2 var(--mono); }
.directory-actions { display: flex; align-items: center; gap: 6px; }
.directory-actions button, body[data-skin] .directory-actions #clear-search {
  border: 1px solid var(--line-air);
  border-radius: 9px;
  background: var(--paper);
  color: var(--accent-air);
  padding: 5px 9px;
  white-space: nowrap;
  font-size: 11px;
}
.directory-actions button:hover, .directory-actions button[aria-pressed=true], body[data-skin] .directory-actions #clear-search:hover { background: var(--paper-soft); border-color: var(--accent-air); }
.site-grid { gap: 17px; }
body[data-skin] .site-card, .site-card { border-radius: 17px; box-shadow: 0 2px 0 var(--line-air), 0 8px 18px var(--sky-shadow); }
.depth-view .site-card { transform: none; }
.depth-view .site-card:hover { transform: perspective(1200px) translateY(-4px) rotateX(var(--rx, 2deg)) rotateY(var(--ry, -2deg)); }
.card-main { display: block; padding: 8px 8px 11px; border-radius: 17px; transform: none; }
body[data-skin] .card-thumbnail, body[data-skin] .card-thumbnail[data-state=private], .card-thumbnail {
  --cover-color: color-mix(in srgb, var(--cover-tone, #a282cc) 37%, var(--paper-soft));
  aspect-ratio: 2 / 1;
  border-color: color-mix(in srgb, var(--line-air) 80%, var(--cover-tone, #a282cc));
  border-radius: 11px;
  background: radial-gradient(ellipse at 46% 0%, var(--paper) 0%, transparent 70%), linear-gradient(135deg, var(--cover-color), var(--paper-soft) 64%, var(--cover-color));
}
.thumbnail-scene { position: absolute; inset: 0; max-width: none; gap: 5px; }
.thumbnail-scene::before, .thumbnail-scene::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--cover-tone, #a282cc) 42%, transparent);
  width: 78%;
  height: 48%;
  transform: translate(-50%, -50%) rotate(-24deg);
}
.thumbnail-scene::after { transform: translate(-50%, -50%) rotate(18deg); border-style: dashed; opacity: .65; }
.thumbnail-scene .logo, body[data-skin] .thumbnail-scene .logo {
  width: 48px;
  height: 48px;
  border: 1px solid #fff7;
  border-radius: 14px;
  background: var(--paper);
  color: color-mix(in srgb, var(--ink-air) 65%, var(--cover-tone, #a282cc));
  box-shadow: 0 5px 14px var(--sky-shadow);
}
.cover-star { position: absolute; font-size: 15px; line-height: 1; color: color-mix(in srgb, var(--ink-air) 48%, var(--cover-tone, #a282cc)); }
.cover-star-a { top: 19%; right: 21%; }
.cover-star-b { bottom: 17%; left: 20%; font-size: 9px; opacity: .7; }
.card-info { padding: 10px 5px 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 5px; align-items: center; }
.card-header { grid-column: 1; gap: 8px; }
.card-header .logo { width: 34px; height: 34px; border-radius: 9px; }
.card-header .logo img { width: 23px; height: 23px; }
.site-name { font-size: 14px; line-height: 1.35; font-weight: 700; }
.site-domain, body[data-skin] .site-domain { margin-top: 2px; color: var(--muted-air); font: 10px/1.4 var(--mono); }
.card-description, body[data-skin] .card-description {
  grid-column: 1 / -1;
  grid-row: 2;
  color: var(--muted-air);
  margin: 0;
  font-size: 11px;
}
.card-bottom { display: contents; }
.visit-count { grid-column: 1 / -1; grid-row: 3; color: var(--muted-air); font-size: 10px; }
.card-arrow, body[data-skin] .card-arrow { grid-column: 2; grid-row: 1; color: var(--accent-air); margin-left: 0; }
.site-card:has(.card-delete) .card-info { padding-bottom: 18px; }
footer { margin-top: 36px; padding-block: 19px 23px; align-items: baseline; }
footer a { color: var(--accent-air); }
footer a:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .topbar { min-height: 62px; }
  main { padding-top: 15px; }
  .hero { border-radius: 19px; min-height: 284px; }
  .hero-content { width: min(81%, 465px); padding: 26px 0 26px 23px; }
  .hero h1 { font-size: clamp(43px, 9.5vw, 60px); }
  .hero .hero-wash, body[data-skin] .hero .hero-wash {
    background: linear-gradient(94deg, var(--skin-hero-wash, #f9f4fdfa), var(--skin-hero-mid, #f4e7f6e8) 60%, transparent);
  }
  .hero-orbit { opacity: .55; right: 2%; }
  .hero-coordinate { display: none; }
  .site-grid { gap: 13px; }
  footer { flex-direction: row; }
}

@media (max-width: 480px) {
  .top-actions { gap: 4px; }
  .top-actions .skin-launch, .top-actions .add-button, .top-actions .icon-button { width: 34px; min-width: 34px; padding: 0; justify-content: center; }
  .top-label { display: none; }
  .hero { min-height: 0; }
  .hero-content { width: 100%; padding: 24px 16px 21px; }
  .hero .hero-content > p, body[data-skin] .hero .hero-content > p { margin: 6px 0 13px; font-size: 12px; }
  .hero .search-box { height: 49px; }
  .hero .search-box select { width: 73px; font-size: 11px; }
  .hero .search-box button { width: 37px; height: 37px; }
  .hero .search-box input { font-size: 12px; }
  .hero-orbit { width: 120px; right: 2%; top: 34%; }
  .directory { margin-top: 23px; }
  .section-heading { gap: 5px; margin-bottom: 11px; }
  .section-heading h2 { font-size: 16px; gap: 5px; white-space: nowrap; }
  .section-heading h2 svg { width: 15px; height: 15px; }
  .section-heading .count-badge { font-size: 10px; padding-inline: 5px; }
  .directory-actions button, body[data-skin] .directory-actions #clear-search { font-size: 10px; min-height: 28px; padding-inline: 5px; }
  .site-grid { gap: 12px 9px; }
  .card-main { padding: 6px 6px 8px; }
  .card-info { padding: 8px 3px 0; gap: 5px 3px; }
  .card-header { flex-direction: row; align-items: center; min-width: 0; gap: 5px; }
  .card-header .logo { width: 25px; height: 25px; font-size: 12px; border-radius: 7px; }
  .card-header .logo img { width: 18px; height: 18px; }
  .thumbnail-scene .logo, body[data-skin] .thumbnail-scene .logo { width: 32px; height: 32px; border-radius: 10px; }
  .thumbnail-scene .logo img { width: 21px; height: 21px; }
  .site-name { font-size: 12px; }
  .site-domain, body[data-skin] .site-domain { font-size: 9px; }
  .card-description, body[data-skin] .card-description { font-size: 10px; }
  .card-arrow svg { width: 11px; height: 11px; }
}
@media (prefers-reduced-motion: reduce), (hover: none) { .depth-view .site-card:hover { transform: none; } }
body.no-motion .depth-view .site-card:hover { transform: none; }
