:root {
  --bg: #f4f8fb;
  --surface: #ffffff;
  --text: #0d1a2e;
  --muted: #5f6e82;
  --accent: #0ea5a3;
  --accent-2: #22c7ee;
  --line: #d8e4ed;
  --shadow: 0 15px 40px rgba(13, 26, 46, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "SF Pro Text", "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(170deg, #eef7fb 0%, #f8fbff 60%, #eef9ff 100%);
  min-height: 100vh;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(60px);
  pointer-events: none;
  z-index: -1;
}

.bg-orb-a {
  width: 340px;
  height: 340px;
  background: rgba(34, 199, 238, 0.22);
  top: -110px;
  left: -60px;
}

.bg-orb-b {
  width: 280px;
  height: 280px;
  background: rgba(14, 165, 163, 0.16);
  right: -80px;
  top: 40%;
}

.site-header {
  max-width: 1180px;
  margin: 18px auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.header-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.hero {
  padding: 26px 0 12px;
}

.pill {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0f7580;
  background: rgba(34, 199, 238, 0.12);
  border: 1px solid rgba(34, 199, 238, 0.3);
  border-radius: 999px;
  padding: 6px 10px;
}

.hero h1 {
  margin: 14px 0 12px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  font-family: "Space Grotesk", "Inter", sans-serif;
}

.hero h1 span {
  color: #15768f;
}

.hero-text {
  margin: 0;
  max-width: 680px;
  color: var(--muted);
  font-size: 16px;
}

.stats {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stat-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
}

.panel {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.controls {
  padding: 14px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}

.control-item label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.search-wrap input,
.control-item select {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  background: #fff;
}

.section-head {
  margin: 20px 0 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-head h2 {
  margin: 0;
  font-size: 18px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.section-head-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.pagination {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pagination-top {
  margin-top: 0;
  justify-content: flex-end;
}

.page-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: #2f3b4a;
  border-radius: 10px;
  height: 34px;
  min-width: 34px;
  padding: 0 10px;
  font-size: 13px;
  cursor: pointer;
}

.page-btn.active {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
  border-color: transparent;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.card-header {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: start;
}

.card-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  background: #eaf3fb;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.card-icon {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 12px;
}

.card-icon-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: #4f6f8f;
  text-transform: uppercase;
}

.card-header-main {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 58px;
  min-width: 0;
}

.card-top {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: flex-start;
}

.featured-chip {
  display: inline-flex;
  width: fit-content;
  font-size: 12px;
  color: #0f7580;
  background: rgba(34, 199, 238, 0.12);
  border: 1px solid rgba(34, 199, 238, 0.32);
  border-radius: 999px;
  padding: 2px 8px;
}

.card-title-gap {
  min-height: 8px;
}

.card-title {
  margin: 0;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.card-body {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.score-chip {
  font-size: 12px;
  background: rgba(14, 165, 163, 0.1);
  color: #0c7774;
  border-radius: 999px;
  padding: 5px 8px;
  white-space: nowrap;
}

.card-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  min-height: 0;
}

.card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
}

.card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #415066;
  padding: 0;
}

.stat-icon {
  width: 14px;
  height: 14px;
  display: inline-flex;
  color: #5a6980;
}

.stat-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  color: #4f5f74;
  background: #f8fbff;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  border-radius: 10px;
  height: 36px;
  padding: 0 12px;
  font-size: 13px;
  border: 1px solid transparent;
}

.btn-solid {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
}

.btn-light {
  border-color: var(--line);
  color: #2f3b4a;
  background: #fff;
}

.tutorial-icon-btn {
  min-width: 98px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  color: #2f3b4a;
  background: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.tutorial-icon-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail-layout {
  display: grid;
  gap: 14px;
}

.detail-head,
.detail-guide,
.detail-desc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.detail-head h1 {
  margin: 0;
  font-size: clamp(20px, 2.6vw, 34px);
  line-height: 1.1;
}

.detail-top {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: start;
}

.detail-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
}

.detail-title-area {
  min-width: 0;
}

.detail-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-title-row .pill {
  margin: 0;
}

.detail-title-spacer {
  min-height: 8px;
}

.detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.detail-stats-after-chips {
  margin-top: 12px;
}

.detail-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
}

.muted {
  color: var(--muted);
}

.qr-card {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: #fbfdff;
}

.qr-card img {
  width: 108px;
  height: 108px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.step-gallery {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.step-gallery img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.guide-block {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #fbfdff;
}

.guide-block h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.guide-block ol,
.guide-block ul {
  margin: 0;
  padding-left: 20px;
  color: #344255;
}

@media (max-width: 980px) {
  .controls {
    grid-template-columns: 1fr 1fr;
  }
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .controls {
    grid-template-columns: 1fr;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  .step-gallery {
    grid-template-columns: 1fr;
  }
  .card-header {
    grid-template-columns: 50px 1fr;
  }
  .card-icon-wrap {
    width: 50px;
    height: 50px;
    border-radius: 10px;
  }
  .card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
  }
  .card-title {
    font-size: 16px;
  }
  .detail-top {
    grid-template-columns: 56px 1fr;
    gap: 10px;
  }
  .detail-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
  }
}
