:root {
  --main: #6d28d9;
  --main-dark: #4c1d95;
  --bg: #f6f4fb;
  --card: #ffffff;
  --text: #1f1b2e;
  --text-sub: #6b6580;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Chiron Sans HK WS", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
}

.shell {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero {
  background: var(--main);
  color: #fff;
  padding: 44px 24px 36px;
  text-align: center;
}

.hero-badge {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.hero h1 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 2px;
}

.hero p {
  margin-top: 8px;
  font-size: 14px;
  color: rgba(255,255,255,.75);
}

.gallery {
  flex: 1;
  padding: 20px 16px 12px;
}

.gallery-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
  letter-spacing: 3px;
  margin: 0 4px 12px;
}

.site-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border-radius: 14px;
  padding: 18px 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 10px rgba(60,40,110,.08);
  text-decoration: none;
  color: var(--text);
  transition: transform .15s ease, box-shadow .15s ease;
}

.site-card:active {
  transform: scale(.97);
  box-shadow: 0 1px 5px rgba(60,40,110,.15);
}

.site-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--main);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.site-info { flex: 1; min-width: 0; }

.site-name { font-size: 17px; font-weight: 600; }

.site-url {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-sub);
  word-break: break-all;
}

.site-go {
  color: var(--main);
  font-size: 15px;
  flex-shrink: 0;
}

.foot {
  text-align: center;
  padding: 18px 0 calc(18px + env(safe-area-inset-bottom));
  font-size: 12px;
  color: var(--text-sub);
}

a, a:hover, a:focus, a:active { text-decoration: none; }

.ws-auto-img{width:100%;max-height:220px;object-fit:cover;border-radius:12px;margin:0 0 12px;background:#eee;display:block;}
.detail-card .ws-auto-img{max-height:280px;}
