:root {
  color-scheme:light;
  --ink:#11294c;
  --muted:#637896;
  --surface:rgba(251,252,255,.82);
  --border:rgba(255,255,255,.94);
  --line:rgba(148,176,214,.35);
  --shadow:0 5px 12px #33497716;
  --pill:linear-gradient(145deg,#edf8ff,#b7dbfc);
  --wall:url(bg-day.webp);
  --hero:url(banner-day.webp);
  --base:#eaf0fa;
  --dock:rgba(242,246,255,.87)
}
html[data-theme="black-gold"] {
  color-scheme:dark;
  --ink:#edf2ff;
  --muted:#a8b8d9;
  --surface:rgba(17,29,53,.85);
  --border:rgba(123,171,234,.43);
  --line:rgba(130,166,223,.28);
  --shadow:0 5px 16px #0003;
  --pill:linear-gradient(145deg,#244b78,#163154);
  --wall:url(bg-night.webp);
  --hero:url(banner-night.webp);
  --base:#080e21;
  --dock:rgba(12,22,42,.9)
}
* {
  box-sizing:border-box
}
html {
  min-height:100%;
  scroll-behavior:smooth;
  background:var(--base)
}
body {
  margin:0;
  color:var(--ink);
  font:14px/1.5 Inter,"PingFang SC","Microsoft YaHei",sans-serif;
  padding-bottom:calc(94px + env(safe-area-inset-bottom));
  min-height:100dvh
}
body:before {
  content:"";
  position:fixed;
  inset:0;
  background:var(--wall) center bottom/cover no-repeat;
  pointer-events:none;
  z-index:-1
}
a {
  color:inherit;
  text-decoration:none
}
button,input {
  font:inherit
}
button {
  color:inherit;
  cursor:pointer
}
button,a {
  -webkit-tap-highlight-color:transparent
}
button {
  border:0
}
button:focus-visible,a:focus-visible,input:focus-visible {
  outline:2px solid #64b6fb;
  outline-offset:4px
}
[hidden] {
  display:none!important
}
img {
  display:block;
  max-width:100%
}
.masthead,.shell,.trial {
  max-width:680px;
  margin:auto;
  padding:0 12px
}
.mast-inner {
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:67px;
  gap:10px
}
.brand {
  display:flex;
  align-items:center;
  gap:11px;
  min-width:0
}
.brand img {
  width:42px;
  height:42px;
  object-fit:contain;
  border-radius:10px
}
.brand span {
  font-size:23px;
  font-weight:750;
  letter-spacing:1px;
  white-space:nowrap
}
.share-trigger {
  display:flex;
  align-items:center;
  gap:7px;
  padding:6px 13px;
  border-radius:30px;
  border:1px solid var(--border);
  background:var(--surface);
  box-shadow:2px 1px 7px #ef9dca22,-1px 0 2px #62b9ff88;
  white-space:nowrap
}
.share-trigger span {
  font-size:23px;
  line-height:1
}
.banner {
  position:relative;
  border:1px solid var(--border);
  border-radius:20px;
  overflow:hidden;
  box-shadow:var(--shadow);
  aspect-ratio:2.05;
  background:var(--surface);
  touch-action:pan-y
}
.banner-slide {
  width:100%;
  height:100%;
  position:absolute;
  inset:0
}
.banner-slide a {
  display:block;
  height:100%
}
.banner-slide img {
  height:100%;
  width:100%;
  object-fit:cover
}
.default-banner {
  background:var(--hero) center/cover
}
.banner-copy {
  position:absolute;
  left:7%;
  top:24%;
  max-width:57%;
  text-shadow:0 1px 5px var(--base)
}
.banner-copy h1 {
  font-size:clamp(25px,7vw,40px);
  margin:0 0 8px;
  font-weight:800
}
.banner-copy p {
  font-size:clamp(11px,3vw,17px);
  margin:0
}
.carousel-prev,.carousel-next {
  position:absolute;
  top:46%;
  width:27px;
  height:32px;
  border-radius:50%;
  background:var(--surface);
  border:1px solid var(--border);
  font-size:26px;
  line-height:20px;
  z-index:2
}
.carousel-prev {
  left:0
}
.carousel-next {
  right:0
}
.carousel-dots {
  position:absolute;
  bottom:10px;
  left:0;
  right:0;
  display:flex;
  justify-content:center;
  gap:7px
}
.carousel-dots button {
  padding:0;
  width:6px;
  height:6px;
  border-radius:50%;
  background:#9daac3
}
.carousel-dots button[aria-current="true"] {
  background:#40b4f9;
  box-shadow:0 0 7px #70c8ff
}
.notification {
  display:flex;
  align-items:center;
  width:100%;
  gap:9px;
  margin:13px 0 17px;
  padding:10px 13px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:22px;
  box-shadow:var(--shadow);
  min-width:0;
  text-align:left
}
.notification strong {
  font-size:15px;
  color:#cf6e9c;
  border-right:1px solid #cd8eaf;
  padding-right:9px;
  white-space:nowrap
}
.signal {
  color:#d56b9d;
  font-size:22px;
  line-height:1
}
.notice-excerpt {
  overflow:hidden;
  flex:1;
  min-width:0;
  mask-image:linear-gradient(90deg,#000 90%,transparent)
}
.notice-motion {
  display:flex;
  width:max-content;
  animation:marquee var(--notice-duration,18s) linear infinite
}
.notice-motion>span {
  white-space:nowrap;
  padding-right:48px
}
.notification:hover .notice-motion {
  animation-play-state:paused
}
@keyframes marquee {
  to {
    transform:translateX(-50%)
  }
}
.hall-main {
  display:grid;
  grid-template-columns:50px minmax(0,1fr);
  gap:10px;
  align-items:start
}
.software-nav {
  position:sticky;
  top:10px;
  display:flex;
  flex-direction:column;
  gap:12px
}
.software-nav button {
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:6px;
  min-height:67px;
  width:50px;
  border-radius:24px;
  padding:8px 4px;
  background:var(--surface);
  border:1px solid var(--border);
  box-shadow:var(--shadow);
  font-size:12px;
  word-break:break-all
}
.software-nav button:before {
  content:"◇";
  font-size:22px;
  line-height:1.2
}
.software-nav button:nth-child(2):before {
  content:"⇄"
}
.software-nav button:nth-child(3):before {
  content:"▣"
}
.software-nav button[aria-selected="true"] {
  background:linear-gradient(140deg,#b8dbf288,#ebacdb88);
  box-shadow:inset 0 0 8px #fff4,var(--shadow)
}
.entries {
  display:flex;
  flex-direction:column;
  gap:10px
}
.entry {
  position:relative;
  display:grid;
  grid-template-columns:47px minmax(0,1fr) 74px;
  column-gap:10px;
  align-items:center;
  min-height:86px;
  padding:13px 9px 12px 12px;
  border:1px solid var(--border);
  border-radius:16px;
  background:var(--surface);
  box-shadow:var(--shadow)
}
.entry-icon {
  width:47px;
  height:47px;
  object-fit:contain;
  border-radius:12px
}
.entry-copy {
  min-width:0;
  overflow-wrap:anywhere
}
.entry-copy strong {
  display:block;
  font-size:14px;
  font-weight:700;
  line-height:1.35
}
.entry-copy span {
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  font-size:11px;
  color:var(--muted);
  margin-top:4px;
  line-height:1.35
}
.corner {
  position:absolute;
  right:7px;
  top:2px;
  height:18px;
  padding:0 7px;
  border:1px solid #a7c9f7;
  border-radius:10px;
  background:linear-gradient(#4389df,#23529e);
  color:#fff;
  font-size:10px;
  line-height:16px;
  box-shadow:0 1px 3px #0002
}
.corner:before {
  content:"♠";
  margin-right:3px
}
.corner[data-badge="推荐"],.corner[data-badge="新台"] {
  background:linear-gradient(#e78fbd,#ac487e);
  border-color:#f2bbd5
}
.corner[data-badge="推荐"]:before {
  content:"♥"
}
.corner[data-badge="新台"]:before {
  content:"♣"
}
.visit {
  align-self:end;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:28px;
  width:74px;
  border-radius:20px;
  background:var(--pill);
  border:1px solid var(--border);
  box-shadow:0 2px 5px #4d7fbe22;
  font-size:12px;
  font-weight:650;
  white-space:nowrap;
  margin-top:20px
}
.visit:active,.share-trigger:active {
  transform:translateY(1px)
}
.visit[aria-disabled="true"] {
  opacity:.5
}
.empty {
  color:var(--muted);
  padding:30px 5px;
  text-align:center
}
.footer {
  font-size:10px;
  color:var(--muted);
  text-align:center;
  margin:25px 0 12px
}
.dock {
  position:fixed;
  bottom:0;
  left:50%;
  transform:translateX(-50%);
  width:100%;
  max-width:704px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  padding:0 10px env(safe-area-inset-bottom);
  height:calc(58px + env(safe-area-inset-bottom));
  background:var(--dock);
  border-top:1px solid var(--border);
  border-radius:16px 16px 0 0;
  backdrop-filter:blur(18px);
  z-index:20
}
.dock a {
  position:relative;
  display:flex;
  align-items:center;
  flex-direction:column;
  justify-content:flex-end;
  padding-bottom:8px;
  font-size:12px;
  line-height:1.2
}
.dock a+a:before {
  content:"";
  height:24px;
  border-left:1px solid var(--line);
  position:absolute;
  left:0;
  bottom:15px
}
.dock img {
  width:44px;
  height:44px;
  object-fit:contain;
  position:absolute;
  bottom:25px;
  filter:drop-shadow(0 2px 4px #7395c655)
}
.dock [aria-current]:after {
  content:"";
  position:absolute;
  bottom:2px;
  width:4px;
  height:4px;
  border-radius:50%;
  background:#3ebdfb;
  box-shadow:0 0 4px #28b3ff
}
dialog {
  padding:22px;
  max-width:calc(100vw - 36px);
  width:350px;
  border:1px solid var(--border);
  border-radius:25px;
  color:var(--ink);
  background:var(--base);
  box-shadow:0 20px 70px #030d3544
}
dialog::backdrop {
  background:#07132688;
  backdrop-filter:blur(7px)
}
.dialog-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:16px
}
.dialog-heading h2 {
  font-size:19px;
  margin:0
}
.dialog-heading button {
  width:28px;
  height:28px;
  border-radius:50%;
  background:var(--surface);
  font-size:23px;
  line-height:1
}
.notice-body {
  white-space:pre-wrap;
  max-height:60vh;
  overflow:auto;
  line-height:1.9
}
.share-dialog {
  text-align:center;
  background:radial-gradient(ellipse at 100% 0,#efaed733,transparent 65%),var(--base)
}
.share-brand {
  width:44px;
  height:44px;
  object-fit:contain;
  margin:0 auto 8px
}
.share-caption {
  color:var(--muted);
  font-size:12px
}
.qr-frame {
  border-radius:20px;
  padding:12px;
  background:linear-gradient(135deg,#9dd6ff,#f4b4da);
  width:190px;
  margin:15px auto
}
#share-qr {
  background:#fff;
  padding:12px;
  border-radius:12px;
  aspect-ratio:1
}
#share-qr svg {
  display:block;
  width:100%;
  height:100%
}
#share-url {
  width:100%;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--surface);
  padding:9px 10px;
  color:var(--muted);
  font-size:11px
}
.copy-link {
  margin:12px 0;
  width:100%;
  padding:11px;
  background:var(--pill);
  border:1px solid var(--border);
  border-radius:14px;
  font-weight:650
}
.share-options {
  display:flex;
  justify-content:center;
  gap:25px
}
.share-options button {
  background:transparent;
  font-size:12px;
  color:var(--muted);
  padding:8px
}
.toast {
  position:fixed;
  bottom:100px;
  left:50%;
  transform:translateX(-50%);
  max-width:90vw;
  padding:10px 18px;
  border-radius:20px;
  background:#0d203dea;
  color:#fff;
  z-index:100;
  font-size:13px;
  box-shadow:var(--shadow)
}
.trial-head {
  display:flex;
  justify-content:space-between;
  padding:12px 0;
  font-size:12px
}
.trial iframe {
  width:100%;
  height:calc(100dvh - 180px);
  border:1px solid var(--border);
  border-radius:15px;
  background:var(--surface)
}
.service-heading {
  display:flex;
  align-items:center;
  gap:15px;
  margin:15px 0
}
.service-heading img {
  width:55px;
  height:55px;
  object-fit:contain
}
.service-heading h1 {
  font-size:21px
}
.service-list {
  display:flex;
  flex-direction:column;
  gap:12px
}
.service-row {
  display:flex;
  gap:10px;
  align-items:center;
  padding:15px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:18px
}
.service-row .entry-copy {
  flex:1
}
.small-button {
  padding:6px 10px;
  border:1px solid var(--border);
  border-radius:15px;
  background:var(--pill);
  font-size:12px
}
@media(min-width:600px) {
  .entry {
    grid-template-columns:60px minmax(0,1fr) 100px;
    min-height:105px;
    padding:17px
  }
  .entry-icon {
    width:60px;
    height:60px
  }
  .entry-copy strong {
    font-size:18px
  }
  .entry-copy span {
    font-size:13px
  }
  .visit {
    width:100px;
    font-size:14px;
    min-height:32px
  }
  .hall-main {
    grid-template-columns:60px minmax(0,1fr);
    gap:16px
  }
  .software-nav button {
    width:60px
  }
  .banner {
    aspect-ratio:2.4
  }
}
@media(max-width:360px) {
  .brand span {
    font-size:21px
  }
  .entry {
    grid-template-columns:38px minmax(0,1fr) 66px;
    gap:6px;
    padding-left:9px
  }
  .entry-icon {
    width:38px;
    height:38px
  }
  .visit {
    width:66px;
    font-size:11px
  }
  .entry-copy strong {
    font-size:12px
  }
  .hall-main {
    grid-template-columns:45px minmax(0,1fr);
    gap:8px
  }
  .software-nav button {
    width:45px
  }
}
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto
  }
}
/* AI illustrations, each theme loads only its displayed artwork. */
.night-art {
  display:none
}
html[data-theme="black-gold"] .day-art {
  display:none
}
html[data-theme="black-gold"] .night-art {
  display:block
}
.share-trigger {
  width:76px;
  height:34px;
  border:0;
  border-radius:0;
  background:none;
  box-shadow:none;
  padding:0;
  display:block;
  flex-shrink:0
}
.share-trigger img {
  height:100%;
  width:100%;
  object-fit:contain
}
.notification {
  height:37px;
  min-height:37px;
  margin:10px 0 14px;
  padding:3px 10px 3px 5px;
  gap:9px;
  border-radius:20px
}
.notice-label {
  width:58px;
  height:29px;
  flex-shrink:0
}
.notice-label img {
  width:100%;
  height:100%;
  object-fit:contain
}
.notice-excerpt {
  font-size:12px
}
.software-nav button:before {
  content:none
}
.software-nav button img {
  width:27px;
  height:27px;
  object-fit:contain;
  filter:drop-shadow(0 1px 2px #6687bb44)
}
.corner {
  width:58px;
  height:21px;
  object-fit:contain;
  right:6px;
  top:0;
  padding:0;
  border:0;
  border-radius:0;
  background:none!important;
  box-shadow:none
}
.corner:before {
  content:none
}
body:before {
  mask-image:linear-gradient(to bottom,transparent 0,transparent 50px,#000 125px)
}
.entry-icon {
  flex-shrink:0;
  aspect-ratio:1;
  object-fit:contain
}
.icon-placeholder {
  display:grid;
  place-items:center;
  background:var(--pill);
  color:var(--ink);
  font-size:17px;
  font-weight:750
}
.software-nav button:nth-child(n)::before {
  content:none;
  display:none
}
:root {
  --dragon:url(dragon-day.webp)
}
html[data-theme="black-gold"] {
  --dragon:url(dragon-night.webp)
}
.entry {
  background-color:transparent;
  background-image:linear-gradient(var(--surface),var(--surface)),var(--dragon);
  background-size:100% 100%;
  backdrop-filter:blur(7px)
}
.notification {
  height:35px;
  min-height:35px;
  padding:3px 9px 3px 5px;
  gap:7px
}
.notice-label {
  width:54px;
  height:25px
}
.notice-excerpt {
  font-size:12px
}
.entry {
  background:var(--dragon) center/100% 100% no-repeat;
  border:0;
  box-shadow:none;
  backdrop-filter:none;
  border-radius:16px
}
/* All software logos fill the same square; intrinsic image dimensions cannot
   change a row's layout. Wide uploads are cropped from the center. */
:root {
  --software-logo-size: 47px;
}
.entry .entry-icon, .service-row .entry-icon {
  display: block;
  width: var(--software-logo-size);
  min-width: var(--software-logo-size);
  max-width: var(--software-logo-size);
  height: var(--software-logo-size);
  min-height: var(--software-logo-size);
  max-height: var(--software-logo-size);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  overflow: hidden;
  flex-shrink: 0;
  border-radius: 11px;
}
.entry .icon-placeholder {
  display: grid;
}
@media (min-width: 600px) {
  :root {
    --software-logo-size: 60px;
  }
}
@media (max-width: 360px) {
  :root {
    --software-logo-size: 38px;
  }
}
/* The silver frame and moving trails share identical inset, width and radius. */
.entry::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 2.6px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient( 135deg, #ffffff 0%, #a5b3c4 20%, #f5f8fd 38%, #8a9bb0 57%, #e6edf6 78%, #ffffff 100% );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}
.entry .corner {
  z-index: 3;
}
/* Retain the original full-viewport embedded trial route and navigation. */
body[data-view="trial"] {
  overflow: hidden;
}
body[data-view="trial"] .masthead {
  display: none;
}
.trial {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 calc(70px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-rows: 43px minmax(0, 1fr);
  background: var(--base);
}
.trial-head {
  margin: 0;
  padding: 0 12px;
  align-items: center;
  gap: 12px;
}
.trial iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
}

/* The SVG path uses normalized arc length, so motion remains linear through
   straight edges and rounded corners. Both colors share one document clock. */
.entry .card-trails {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  overflow: visible;
  pointer-events: none;
}
.card-trails rect {
  fill: none;
  stroke-width: 2.6px;
  stroke-linecap: round;
}
.card-trails .trail-blue {
  stroke: #55c8ff;
  filter: drop-shadow(0 0 .8px #55c8ff);
}
.card-trails .trail-pink {
  stroke: #ff88cc;
  filter: drop-shadow(0 0 .8px #ff88cc);
}

@property --trail-offset {
  syntax: "<length>";
  inherits: true;
  initial-value: 0px;
}
