* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --ink: #18233a;
  --muted: #6d7a90;
  --line: #e7edf6;
  --panel: #ffffff;
  --bg: #eef3fa;
  --brand: #1f4b99;
  --gold: #c9a227;
  --gold-soft: #f8efd4;
  --gold-line: rgba(201, 162, 39, 0.45);
  --radius: 22px;
}

body {
  font-family: "Outfit", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  min-height: 100vh;
  background:
    radial-gradient(ellipse 70% 45% at 8% -5%, rgba(47, 111, 237, 0.14), transparent 58%),
    radial-gradient(ellipse 55% 40% at 100% 0%, rgba(201, 162, 39, 0.18), transparent 52%),
    radial-gradient(ellipse 50% 35% at 50% 100%, rgba(31, 75, 153, 0.08), transparent 60%),
    linear-gradient(180deg, #f7f9fc, #e8eef8);
  overflow-x: hidden;
}

.app {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 16px 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.82)),
    repeating-linear-gradient(
      -45deg,
      rgba(201, 162, 39, 0.03) 0 8px,
      transparent 8px 16px
    );
  backdrop-filter: blur(18px);
  border-left: 1px solid rgba(201, 162, 39, 0.22);
  border-right: 1px solid rgba(201, 162, 39, 0.22);
  box-shadow: 0 0 50px rgba(31, 75, 153, 0.08);
  overflow: hidden;
}

.app-ornament {
  position: absolute;
  left: 16px;
  right: 16px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #e8c56a, transparent);
  pointer-events: none;
}

.app-ornament--top { top: 8px; }
.app-ornament--bottom { bottom: 10px; }

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f7f9fd);
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(24, 35, 58, 0.05);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.logo-wrap {
  padding: 3px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f6e7a8, #fff, #e7c56a);
  box-shadow: 0 8px 18px rgba(201, 162, 39, 0.2);
}

.logo {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  object-fit: contain;
  background: #fff;
  display: block;
}

.brand-title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.03em;
  background: linear-gradient(100deg, #18233a 20%, #1f4b99 55%, #b8921f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-sub {
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
}

.header-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.header-badge,
.header-chip {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 999px;
  padding: 5px 9px;
}

.header-badge {
  color: #6b4f0c;
  background: linear-gradient(180deg, #fff6d8, #efd58a);
  border: 1px solid rgba(201, 162, 39, 0.35);
}

.header-chip {
  color: #1f4b99;
  background: #eaf1ff;
  border: 1px solid #d5e3ff;
}

.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.trust-item {
  text-align: center;
  padding: 10px 6px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fffef9, #fff8e8);
  border: 1px solid #f0e2b8;
  box-shadow: 0 6px 14px rgba(201, 162, 39, 0.08);
}

.trust-item strong {
  display: block;
  font-size: 14px;
  color: #8a6a14;
  margin-bottom: 2px;
}

.trust-item span {
  font-size: 11px;
  color: #9a8660;
}

.hero {
  margin-bottom: 12px;
}

.banner {
  position: relative;
  height: 178px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(201, 162, 39, 0.4);
  background: #1a2332;
  box-shadow:
    0 18px 40px rgba(31, 75, 153, 0.16),
    inset 0 1px 0 rgba(255, 230, 160, 0.35);
}

.banner-frame {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 230, 170, 0.28);
  border-radius: 18px;
  pointer-events: none;
  z-index: 3;
}

.banner::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #f0d78c, transparent);
  z-index: 4;
  pointer-events: none;
}

.banner-slide {
  position: absolute;
  inset: 0;
  padding: 22px 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 1;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.banner-slide--tools {
  background-image:
    linear-gradient(
      180deg,
      rgba(24, 36, 58, 0.32) 0%,
      rgba(36, 28, 14, 0.36) 48%,
      rgba(16, 24, 40, 0.46) 100%
    ),
    url("banner-bg.jpg");
  background-position: center 42%;
}

.banner-slide--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-left: 16px;
  padding-right: 16px;
  gap: 12px;
}

.banner-slide--center::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(94%, 360px);
  height: 76%;
  border-radius: 22px;
  background:
    radial-gradient(
      ellipse at center,
      rgba(18, 14, 8, 0.48) 0%,
      rgba(28, 20, 10, 0.22) 52%,
      transparent 78%
    );
  z-index: 0;
  pointer-events: none;
}

.banner-slide--center .banner-title,
.banner-slide--center .banner-subline {
  position: relative;
  z-index: 1;
}

.banner-slide--center .banner-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0.05em;
  background: linear-gradient(
    180deg,
    #fffdf2 0%,
    #ffe9a8 26%,
    #f2c75a 58%,
    #e8b03a 82%,
    #fff0b8 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter:
    drop-shadow(0 0 1px #2a1806)
    drop-shadow(0 1px 0 #6b4214)
    drop-shadow(0 2px 0 rgba(32, 18, 4, 0.8))
    drop-shadow(0 7px 16px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 20px rgba(255, 196, 70, 0.58));
}

.banner-subline {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.18em;
  background: linear-gradient(180deg, #fffaf0, #ffe7a0 48%, #efc256 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter:
    drop-shadow(0 0 1px #2a1806)
    drop-shadow(0 1px 0 #6b4214)
    drop-shadow(0 2px 0 rgba(32, 18, 4, 0.75))
    drop-shadow(0 5px 12px rgba(0, 0, 0, 0.42))
    drop-shadow(0 0 14px rgba(255, 210, 110, 0.48));
}

.banner-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.banner-dots {
  display: none;
}

.notice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 16px;
  background: linear-gradient(90deg, #fff9e8, #fffdf6);
  border: 1px solid #efdfb0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  overflow: hidden;
}

.notice-label {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
  color: #6b4f0c;
  background: linear-gradient(180deg, #ffe9a8, #e7c56a);
  border-radius: 999px;
  padding: 5px 9px;
}

.notice-track {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.notice-track span {
  display: inline-block;
  padding-left: 100%;
  font-size: 12px;
  color: #8a6a1d;
  animation: marquee 18s linear infinite;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  margin-bottom: 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #eef2f8, #e7edf6);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.tab {
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.2s ease;
}

.tab.active {
  color: #5c4508;
  background: linear-gradient(180deg, #fff4d0, #e4c56a);
  box-shadow: 0 8px 18px rgba(201, 162, 39, 0.22);
}

.panel {
  border-radius: var(--radius);
  padding: 16px 14px 10px;
  background:
    linear-gradient(180deg, #ffffff, #fbfcfe);
  border: 1px solid var(--line);
  box-shadow:
    0 14px 32px rgba(26, 35, 50, 0.06),
    inset 0 2px 0 rgba(201, 162, 39, 0.3);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 0 4px 10px;
  border-bottom: 1px dashed rgba(201, 162, 39, 0.28);
}

.panel-kicker {
  font-size: 11px;
  color: #9a8660;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.panel-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}

.panel-ornament {
  color: #e0c36a;
  font-size: 12px;
  opacity: 0.8;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 10px;
  padding-bottom: 6px;
}

.site-item {
  text-decoration: none;
  color: var(--ink);
  text-align: center;
  padding: 12px 6px 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f7f9fc);
  border: 1px solid #eef2f7;
  box-shadow: 0 8px 16px rgba(24, 35, 58, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.site-item:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 162, 39, 0.45);
  box-shadow: 0 14px 24px rgba(201, 162, 39, 0.12);
}

.site-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 10px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 10px 20px rgba(26, 35, 50, 0.12);
}

.site-icon-img {
  display: block;
  object-fit: cover;
  background: #fff;
  border: 1px solid #edd9a0;
  box-shadow:
    0 0 0 3px rgba(255, 248, 220, 0.9),
    0 10px 18px rgba(26, 35, 50, 0.1);
  padding: 0;
}

.site-name {
  font-size: 12px;
  line-height: 1.35;
  color: #334155;
  font-weight: 600;
}

.site-item-static {
  cursor: default;
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 12px 20px;
  background:
    radial-gradient(circle at top, rgba(255, 236, 170, 0.35), transparent 55%),
    linear-gradient(180deg, #fffdf6, #fff8e8);
  border: 1px solid #efdfb0;
}

.site-item-static .site-icon-img {
  width: 72px;
  height: 72px;
  border-radius: 20px;
}

.site-item-static .site-name {
  font-size: 15px;
  font-weight: 700;
  color: #5c4508;
  word-break: break-all;
}

.footer {
  margin-top: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.footer-line {
  width: 64px;
  height: 2px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #e0c36a, transparent);
}

.grid-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 28px 8px;
  font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
  .notice-track span {
    animation: none;
  }
}

@media (min-width: 860px) {
  body {
    padding: 28px 0;
  }

  .app {
    min-height: auto;
    border-radius: 30px;
    border: 1px solid rgba(201, 162, 39, 0.25);
  }
}
