:root {
  --bg: #0d1117;
  --bg-card: #161b22;
  --bg-card-hover: #1c2128;
  --border: #30363d;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --accent: #58a6ff;
  --accent-dim: #388bfd66;
  --red-ball: #e63946;
  --red-ball-bg: #ff6b6b22;
  --blue-ball: #4361ee;
  --blue-ball-bg: #4361ee33;
  --green: #3fb950;
  --font-sans: 'Noto Sans SC', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(88, 166, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88, 166, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.hero {
  text-align: center;
  margin-bottom: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.logo-icon {
  font-size: 2rem;
  color: var(--accent);
}

h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.tagline {
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.intro {
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.intro p {
  margin-bottom: 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.intro p:last-child {
  margin-bottom: 0;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: border-color 0.2s, background 0.2s;
}

.card:hover {
  border-color: var(--accent-dim);
  background: var(--bg-card-hover);
}

.card h2 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.poison-soup .soup-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  min-height: 2.5em;
  margin-bottom: 1rem;
  font-style: italic;
  text-align: center;
}

.poison-soup {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.like-section, .donate {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.btn {
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
  transition: transform 0.15s, opacity 0.15s;
  display: block;
  margin: 0 auto;
}

img[src="IMG_8882.jpg"] {
  display: block;
  margin: 0 auto;
  width: 180px;
  height: 180px;
  border-radius: 8px;
  /* 微信友好的样式 */
  max-width: 100%;
  -webkit-touch-callout: default;
  -webkit-user-select: none;
  user-select: none;
}

.btn:hover {
  transform: scale(1.02);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.ssq-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.balls-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.red-balls {
  display: flex;
  gap: 0.35rem;
}

.ball {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
}

.ball.red {
  background: linear-gradient(135deg, var(--red-ball), #c1121f);
  color: white;
  box-shadow: 0 2px 8px var(--red-ball-bg);
}

.ball.blue {
  background: linear-gradient(135deg, var(--blue-ball), #3a0ca3);
  color: white;
  box-shadow: 0 2px 8px var(--blue-ball-bg);
  margin-left: 0.25rem;
}

.stats .beijing-time {
  font-family: var(--font-mono);
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.stats .date {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.counters {
  display: flex;
  gap: 1.5rem;
}

.counter {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.count-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.count-value {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--green);
}

.count-unit {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.like-section .like-hint {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.btn-like {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--green);
  color: white;
}

.like-icon {
  font-size: 1.2rem;
}

.like-count {
  font-family: var(--font-mono);
  font-weight: 500;
}

.donate-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.qrcode-placeholder {
  width: 180px;
  height: 180px;
  margin: 0 auto;
  background: var(--bg);
  border: 2px dashed var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.qrcode-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.qrcode-placeholder p {
  font-size: 0.9rem;
}

.qrcode-hint {
  font-size: 0.8rem;
  opacity: 0.7;
  text-align: center;
  margin-top: 0.5rem;
  color: var(--text-muted);
}

.footer {
  text-align: center;
  padding: 2rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 480px) {
  .container {
    padding: 1rem;
  }

  .ball {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }
  
  img[src="IMG_8882.jpg"] {
    width: 150px !important;
    height: 150px !important;
  }
}
