:root {
  --color-primary: #7C3AED;
  --color-accent: #EC4899;
  --color-bg: #FAF5FF;
  --color-card: #FFFFFF;
  --color-text: #0F172A;
  --color-muted: #6B7280;
  --color-border: #EFE7FC;
  --radius-card: 16px;
  --shadow-card: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(124, 58, 237, .08);
}

/* ===== 官网同款深色（只作用于用户看到的公开页） ===== */
.public {
  --pub-bg: #15161A;
  --pub-surface: #232324;
  --pub-surface-2: #1C1D21;
  --pub-border: rgba(255, 255, 255, .08);
  --pub-text: #FAFBFF;
  --pub-muted: #8B8B90;
  --pub-blue: #009EFA;
  --pub-purple: #8B85FF;
  --pub-orange: #FF9230;
  background: var(--pub-bg);
  color: var(--pub-text);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  padding: 0 12px calc(28px + env(safe-area-inset-bottom));
}

.public .site-head {
  max-width: 1080px;
  margin: 0 auto;
  padding: calc(22px + env(safe-area-inset-top)) 0 28px;
}

.public .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.brand-mark { display: block; border-radius: 8px; }
.brand-wordmark { display: block; width: auto; }

.public .hero-title {
  margin: 0 0 12px;
  font-size: clamp(30px, 10vw, 54px);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--pub-text);
}

.public .hero-title em {
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.public .hero-sub {
  margin: 0;
  color: var(--pub-muted);
  font-size: 15px;
  line-height: 1.6;
}

.public .hero-sub strong { color: var(--pub-text); font-weight: 600; }

main { max-width: 1080px; margin: 0 auto; }

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 768px) {
  body { padding-inline: 24px; }
  .public .site-head { padding-top: calc(26px + env(safe-area-inset-top)); padding-bottom: 36px; }
  .public .brand { margin-bottom: 40px; }
  .public .hero-title { font-size: clamp(42px, 7vw, 58px); }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
}

@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.public .card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--pub-surface);
  border: 1px solid var(--pub-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

@media (hover: hover) {
  .public .card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, .16);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  }
}

.cover-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--pub-surface-2);
}

.cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cover-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 12px;
  color: var(--pub-muted);
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  background: linear-gradient(145deg, #1B1C21, #232324);
}

.public .tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .55);
  border: 1px solid rgba(255, 255, 255, .14);
  color: var(--pub-text);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  backdrop-filter: blur(8px);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  flex: 1;
}

.public .card-name {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--pub-text);
  overflow-wrap: anywhere;
}

@media (min-width: 768px) {
  .card-body { gap: 12px; padding: 14px; }
  .public .card-name { font-size: 15px; }
}

/* 官网主按钮就是「白色胶囊 + 黑字」 */
.public .try-btn {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  color: #0A0A0B;
  background: #FFFFFF;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, transform .12s ease;
}

.public .try-btn:hover { background: #EFEFF2; }
.public .try-btn:active { transform: scale(.985); }
.public .try-btn:focus-visible { outline: 3px solid rgba(255, 255, 255, .4); outline-offset: 2px; }

.public .skeleton {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-card);
  background: linear-gradient(100deg, #1D1E23 20%, #26272C 40%, #1D1E23 60%);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}

@keyframes shimmer { to { background-position: -200% 0; } }

.public .empty {
  margin: 56px auto;
  text-align: center;
  color: var(--pub-muted);
  font-size: 15px;
}

.public .site-foot {
  max-width: 1080px;
  margin: 48px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--pub-border);
  color: var(--pub-muted);
  font-size: 12.5px;
  line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
