/* 木叶观光 · 子应用样式（浅色 · 弥散渐变 · MiSans · 小圆角）*/
:root {
  --font-body: 'MiSans', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --bg: #eef1f8;
  --surface: #ffffff;
  --surface-2: #f6f8fc;
  --ink: #1c2230;
  --ink-2: #5a6478;
  --ink-3: #98a1b3;
  --line: rgba(20, 28, 48, 0.08);
  --line-strong: rgba(20, 28, 48, 0.13);
  --brand: #ff6a3d;
  --brand-2: #ff8c42;
  --accent: #5b6cff;
  --r-card: 10px;
  --r-ctrl: 8px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 48, 0.05);
  --shadow-md: 0 6px 20px rgba(16, 24, 48, 0.06);
  --shadow-lg: 0 14px 36px rgba(16, 24, 48, 0.09);
  --grid-size: min(94vw, 450px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* 弥散渐变背景 */
.background-gradient {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42% 50% at 12% 16%, rgba(255, 122, 69, 0.20), transparent 60%),
    radial-gradient(38% 46% at 88% 10%, rgba(91, 108, 255, 0.18), transparent 62%),
    radial-gradient(46% 52% at 84% 90%, rgba(33, 203, 163, 0.16), transparent 60%),
    radial-gradient(40% 44% at 16% 92%, rgba(255, 138, 61, 0.16), transparent 60%);
  filter: blur(30px) saturate(118%);
}

.glass-container { width: 100%; min-height: 100vh; padding: 20px; }

.sightseeing-container {
  width: 100%; max-width: 520px; padding: 15px;
  margin: 0 auto; display: flex; flex-direction: column;
  align-items: center; gap: 16px;
}

.title-area { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 8px; }
.title-area h1 { font-size: clamp(20px, 5vw, 26px); font-weight: 700; color: var(--ink); text-align: center; }
.title-icon { font-size: 22px; color: var(--brand); }

.main-content-wrapper {
  width: 100%; max-width: 460px; padding: 20px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card);
  display: flex; flex-direction: column; gap: 18px;
  box-shadow: var(--shadow-md);
}

.date-selector { position: relative; width: 100%; }
.date-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--brand); width: 20px; height: 20px; pointer-events: none; }
.date-input {
  width: 100%; padding: 13px 42px;
  border: 1px solid var(--line); border-radius: var(--r-ctrl);
  background: var(--surface); color: var(--ink);
  font-size: 16px; font-family: var(--font-body);
  appearance: none; cursor: pointer; transition: 0.18s;
}
.date-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255, 106, 61, 0.18); }
.date-input option { background: #fff; color: var(--ink); }

.lottery-box { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 22px; }

.grid-container {
  width: 100%; max-width: var(--grid-size); aspect-ratio: 1;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 12px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-card); margin: 0 auto; box-shadow: var(--shadow-md);
}
.grid-item {
  width: 100%; height: 100%; position: relative;
  border-radius: var(--r-ctrl); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
}
.grid-item img { width: 100%; height: 100%; object-fit: cover; }
.grid-item.running { box-shadow: 0 0 0 2px var(--brand) inset; }
.grid-item.active {
  box-shadow: 0 0 0 3px var(--brand) inset, 0 0 18px rgba(255, 106, 61, 0.55);
  transform: scale(1.05); z-index: 2;
}

.start-btn {
  width: 220px; padding: 14px 0; font-size: 17px; font-weight: 600;
  font-family: var(--font-body);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; border: none; border-radius: var(--r-ctrl);
  cursor: pointer; transition: 0.18s; box-shadow: 0 8px 22px rgba(255, 106, 61, 0.3);
}
.start-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(255, 106, 61, 0.4); }
.start-btn:active { transform: translateY(0); }

.game-info {
  width: 100%; max-width: 460px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 22px; box-shadow: var(--shadow-md); margin: 0 auto;
}
.game-info h3 { margin-bottom: 14px; color: var(--ink); font-size: 17px; font-weight: 600; }
.game-info p { margin-bottom: 10px; color: var(--ink-2); line-height: 1.7; font-size: 14.5px; }
.game-info p:last-child { margin-bottom: 0; }

.result-modal {
  position: fixed; inset: 0; background: rgba(16, 20, 34, 0.5);
  display: none; justify-content: center; align-items: center;
  z-index: 1000; backdrop-filter: blur(6px);
}
.result-content {
  padding: 30px 24px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: var(--shadow-lg); text-align: center; color: var(--ink);
  max-width: 90vw; width: 340px;
}
.result-content h2 { font-size: 22px; margin-bottom: 16px; letter-spacing: 0.04em; color: var(--brand-ink); font-weight: 700; }
#resultText { font-size: 15px; line-height: 1.6; padding: 0 10px; margin: 16px 0; white-space: normal; word-wrap: break-word; }

.close-btn {
  padding: 11px 32px; font-size: 15px; font-weight: 600;
  border-radius: var(--r-ctrl);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; border: none; cursor: pointer; transition: 0.18s;
}
.close-btn:hover { transform: translateY(-1px); }


@media (max-height: 700px) { .sightseeing-container { gap: 14px; } }
