:root {
  --bg: #f5f9ff;
  --panel: #ffffff;
  --panel-soft: #f8fbff;
  --border: #d7e5fb;
  --text: #1c2433;
  --muted: #66758c;
  --accent: #5b9ff6;
  --accent-dark: #3e84df;
  --accent-soft: #edf5ff;
  --success-soft: #eef8f0;
  --shadow: 0 16px 40px rgba(31, 66, 122, 0.08);
}

body {
  background: linear-gradient(180deg, #f8fbff 0%, #f3f8ff 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

a {
  color: var(--accent);
}

.site-header {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.site-logo {
  width: 100%;
  max-width: 240px;
  height: auto;
  display: block;
}

.index-header .container {
  display: flex;
  justify-content: center;
}

.page-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.hero-card,
.guide-card,
.quick-card,
.step-card,
.top-card,
.image-frame {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 1.35rem;
  box-shadow: var(--shadow);
}

.hero-card,
.guide-card,
.quick-card,
.step-card,
.top-card {
  padding: 1.25rem;
}

.hero-card {
  padding: 1.5rem;
}

.hero-badge,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: 999px;
  padding: 0.42rem 0.8rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.guide-card {
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.index-page .guide-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.guide-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(31, 66, 122, 0.12);
}

.guide-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: #fff;
}

.btn-brand {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

.btn-brand:hover,
.btn-brand:focus {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

.btn-soft {
  background: var(--accent-soft);
  border: 1px solid #cfe0fb;
  color: var(--accent-dark);
  font-weight: 600;
}

.btn-soft:hover,
.btn-soft:focus {
  background: #e3efff;
  color: var(--accent-dark);
}

.step-number {
  width: 2.1rem;
  height: 2.1rem;
  flex: 0 0 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 700;
}

.tip-list,
.simple-list {
  padding-left: 1.1rem;
  margin-bottom: 0;
}

.tip-list li,
.simple-list li {
  margin-bottom: 0.5rem;
}

.check-panel {
  background: var(--success-soft);
  border: 1px solid #d6ead9;
  border-radius: 1rem;
  padding: 1rem;
}

.image-frame {
  overflow: hidden;
}

.image-frame img {
  width: 100%;
  display: block;
}

.zoomable-image {
  cursor: zoom-in;
}

.viewer-modal .modal-content {
  border: 0;
  background: #0b1220;
  color: #e6edf8;
}

.viewer-controls .btn {
  min-width: 2.5rem;
}

.viewer-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 55vh;
  max-height: 72vh;
  overflow: hidden;
  touch-action: none;
}

.viewer-stage img {
  max-width: 100%;
  max-height: 100%;
  transform-origin: center center;
  transition: transform 0.18s ease;
  user-select: none;
  -webkit-user-drag: none;
}

.guide-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.guide-topbar .site-logo {
  max-width: 210px;
}

.index-intro,
.index-copy {
  font-size: 0.98rem;
  line-height: 1.55;
}

.footer-note {
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 767.98px) {
  .page-shell {
    padding: 1rem 0.9rem 2rem;
  }

  .hero-card,
  .guide-card,
  .quick-card,
  .step-card,
  .top-card {
    padding: 1rem;
  }

  .guide-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .guide-topbar .btn {
    width: 100%;
  }
}
