:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --panel: rgba(255,255,255,0.94);
  --panel-strong: #ffffff;
  --text: #1e2a36;
  --muted: #5d6d7e;
  --line: rgba(76, 104, 134, 0.18);
  --primary: #1f6fd1;
  --primary-soft: rgba(31, 111, 209, 0.10);
  --accent: #f39a2d;
  --shadow: 0 18px 42px rgba(33, 55, 84, 0.10);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 28px 16px 48px;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(31, 111, 209, 0.10), transparent 28%),
    radial-gradient(circle at bottom left, rgba(243, 154, 45, 0.10), transparent 24%),
    var(--bg);
  color: var(--text);
  line-height: 1.75;
}

.container {
  max-width: 920px;
  margin: 0 auto;
}

.page {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero {
  padding: 28px 24px 18px;
  background: linear-gradient(135deg, rgba(31, 111, 209, 0.12), rgba(243, 154, 45, 0.10));
  border-bottom: 1px solid var(--line);
}

.hero h1,
.hero h2 {
  margin: 0;
  line-height: 1.3;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-app-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  object-fit: contain;
  border-radius: 12px;
}

.hero p {
  margin: 12px 0 0;
  color: var(--muted);
}

.content {
  padding: 24px;
}

.feature-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  object-fit: contain;
}

.feature-head h2 {
  margin: 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}

.back-link:hover {
  text-decoration: underline;
}

.section {
  margin-top: 24px;
}

.section:first-child {
  margin-top: 0;
}

.section h2,
.section h3 {
  margin: 0 0 10px;
  line-height: 1.4;
}

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

.section-head h2 {
  margin: 0;
}

.search-panel {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(31, 111, 209, 0.06);
}

.search-panel.is-collapsed {
  padding: 12px 14px;
}

.search-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.search-bar {
  display: flex;
  gap: 10px;
  align-items: center;
}

.search-input {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-strong);
  color: var(--text);
  font: inherit;
}

.search-input:focus {
  outline: none;
  border-color: rgba(31, 111, 209, 0.55);
  box-shadow: 0 0 0 3px rgba(31, 111, 209, 0.10);
}

.search-clear {
  flex: 0 0 auto;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-strong);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.search-hint {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.search-extra {
  margin-top: 2px;
}

.search-empty {
  margin-top: 14px;
}

.search-results {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.search-card {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-strong);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(24, 45, 74, 0.06);
}

.search-card:hover {
  border-color: rgba(31, 111, 209, 0.34);
  box-shadow: 0 14px 30px rgba(24, 45, 74, 0.10);
}

.search-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.search-card h3 {
  margin: 0;
  font-size: 18px;
}

.search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(31, 111, 209, 0.10);
  border: 1px solid rgba(31, 111, 209, 0.18);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}

.search-contexts {
  margin-top: 10px;
}

.search-contexts p {
  margin: 8px 0 0;
}

.search-contexts mark {
  padding: 0 3px;
  border-radius: 4px;
  background: rgba(243, 154, 45, 0.22);
  color: inherit;
}

.view-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.view-icon-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-strong);
  cursor: pointer;
}

.view-icon-btn img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.view-icon-btn.is-active {
  border-color: rgba(31, 111, 209, 0.55);
  background: rgba(31, 111, 209, 0.10);
  box-shadow: 0 8px 20px rgba(31, 111, 209, 0.12);
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.single-view {
  margin-top: 0;
}

.is-hidden {
  display: none !important;
}

.feature-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-strong);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.feature-list-item span {
  color: var(--text);
  line-height: 1.45;
}

.feature-list-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  object-fit: contain;
}

.section p,
.section li {
  color: var(--muted);
}

ul,
ol {
  margin: 10px 0 0;
  padding-left: 22px;
}

li + li {
  margin-top: 8px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.home-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.card {
  display: block;
  padding: 18px;
  text-decoration: none;
  color: inherit;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(24, 45, 74, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(24, 45, 74, 0.10);
  border-color: rgba(31, 111, 209, 0.34);
}

.card.is-active,
.feature-list-item.is-active {
  border-color: rgba(31, 111, 209, 0.55);
  background: rgba(31, 111, 209, 0.10);
  box-shadow: 0 12px 28px rgba(31, 111, 209, 0.14);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.card-head h3 {
  margin: 0;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.card-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  object-fit: contain;
}

.shot-card {
  display: block;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(24, 45, 74, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.shot-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(24, 45, 74, 0.10);
  border-color: rgba(31, 111, 209, 0.34);
}

.shot-card img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #dfe7f1;
}

.shot-card .shot-body {
  padding: 14px 16px 16px;
}

.shot-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.shot-card p {
  margin: 0;
  color: var(--muted);
}

.tip,
.notice,
.metric {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
}

.tip {
  background: rgba(31, 111, 209, 0.08);
}

.notice {
  background: rgba(243, 154, 45, 0.10);
}

.metric {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.metric strong {
  color: var(--text);
}

.path-box {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(31, 111, 209, 0.06);
}

.path-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.path-row:first-child {
  margin-top: 0;
}

.path-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  color: var(--text);
  font-weight: 600;
}

.path-chip img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.path-arrow {
  color: var(--muted);
  font-weight: 700;
}

.inline-icon {
  width: 22px;
  height: 22px;
  vertical-align: text-bottom;
}

.small {
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 680px) {
  body {
    padding: 14px 10px 32px;
  }

  .hero,
  .content {
    padding: 18px;
  }

  .hero h1,
  .hero h2 {
    font-size: 26px;
  }

  .search-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .home-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }
}
