:root {
  color-scheme: light;
  --page: #f4f6f7;
  --surface: #ffffff;
  --surface-soft: #edf3f1;
  --ink: #17211e;
  --muted: #68736f;
  --border: #dfe5e2;
  --primary: #146c52;
  --primary-hover: #0e5a43;
  --primary-soft: #e5f3ed;
  --blue: #2868d8;
  --blue-soft: #eaf1ff;
  --orange: #b66018;
  --shadow: 0 8px 24px rgba(27, 47, 40, 0.07);
  --content: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page);
  color: var(--ink);
  font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input { font: inherit; }

a { color: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.header-inner,
.intro-inner,
.guidance-inner,
.catalog,
.trust-inner,
.footer-inner {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
}

.header-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--primary);
  color: #ffffff;
}

.brand-mark svg { width: 21px; height: 21px; }

.brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-copy strong {
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700;
}

.brand-copy small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 11px;
}

.site-nav {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  gap: 32px;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.is-active { color: var(--ink); }

.site-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--primary);
}

.intro-band {
  background: #eaf1ef;
  border-bottom: 1px solid #dbe5e1;
}

.intro-inner {
  min-height: 268px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 72px;
  padding-top: 42px;
  padding-bottom: 42px;
}

.intro-copy { max-width: 680px; }

.update-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e29b35;
  box-shadow: 0 0 0 4px rgba(226, 155, 53, 0.17);
}

h1 {
  margin: 0;
  max-width: 660px;
  font-size: 40px;
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: 0;
}

.intro-copy > p {
  max-width: 620px;
  margin: 16px 0 0;
  color: #5e6d68;
  font-size: 16px;
  line-height: 1.8;
}

.intro-summary {
  display: grid;
  grid-template-columns: repeat(3, 132px);
  gap: 10px;
}

.intro-summary div {
  min-height: 98px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px;
  border-left: 2px solid #c8d9d2;
}

.intro-summary strong {
  font-size: 29px;
  line-height: 1.2;
  font-weight: 700;
}

.intro-summary span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.guidance-band {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.guidance-inner {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 42px;
  padding-top: 30px;
  padding-bottom: 30px;
}

.guidance-title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.guidance-title > span {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--primary);
  background: var(--primary-soft);
}

.guidance-title svg { width: 20px; height: 20px; }

.guidance-title h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 700;
}

.guidance-title p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.guidance-inner ol {
  margin: 0;
  padding-left: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 28px;
  color: #52605b;
  font-size: 12px;
  line-height: 1.7;
}

.guidance-inner li { padding-left: 3px; }

.guidance-inner li::marker {
  color: var(--orange);
  font-weight: 700;
}

.catalog { padding-top: 54px; padding-bottom: 64px; }

.catalog-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-kicker {
  color: var(--orange);
  font-size: 11px;
  font-weight: 700;
}

.catalog-heading h2 {
  margin: 5px 0 0;
  font-size: 26px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0;
}

.catalog-heading p {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 13px;
}

.catalog-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 10px;
}

.search-box {
  width: min(100%, 330px);
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--muted);
}

.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(20, 108, 82, 0.11);
}

.search-box svg { width: 17px; height: 17px; flex: 0 0 auto; }

.search-box input {
  width: 100%;
  min-width: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 14px;
}

.search-box input::placeholder { color: #929b98; }

.filter-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: #e8ecea;
  border-radius: 8px;
}

.filter-button {
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  color: #67726e;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
}

.filter-button:hover { color: var(--ink); }

.filter-button.is-active {
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 1px 4px rgba(31, 43, 39, 0.09);
}

.result-status {
  min-height: 20px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
}

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

.app-card {
  position: relative;
  min-width: 0;
  min-height: 415px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.app-card[hidden] { display: none; }

.rank-number {
  position: absolute;
  top: 16px;
  right: 17px;
  color: #d5dcda;
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
}

.app-head {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding-right: 40px;
}

.app-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
}

.app-icon svg { width: 28px; height: 28px; stroke-width: 1.8; }
.icon-lime { background: #638a28; }
.icon-blue { background: #3170ce; }
.icon-orange { background: #c56b25; }
.icon-coral { background: #bd4f57; }
.icon-teal { background: #167b7d; }
.icon-violet { background: #7253a8; }

.app-identity { min-width: 0; }

.app-identity h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0;
}

.app-identity p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.tag-list span {
  padding: 5px 8px;
  border-radius: 4px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 11px;
  line-height: 1.2;
}

.tag-list-online span {
  color: var(--primary);
  background: var(--primary-soft);
}

.app-description {
  margin: 16px 0 0;
  color: #414d49;
  font-size: 14px;
  line-height: 1.75;
}

.feature-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 11px;
  color: #56635e;
  background: #f6f8f7;
  border-left: 3px solid #8aa99e;
  font-size: 12px;
  line-height: 1.55;
}

.feature-line svg {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  flex: 0 0 auto;
  color: var(--primary);
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--muted);
  font-size: 11px;
}

.card-meta span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.card-meta svg { width: 13px; height: 13px; }

.card-action {
  min-height: 42px;
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 7px;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 160ms ease, transform 160ms ease;
}

.card-action:hover { transform: translateY(-1px); }
.card-action svg { width: 17px; height: 17px; }
.action-download { background: #2868d8; }
.action-download:hover { background: #1e57b8; }
.action-online { background: var(--primary); }
.action-online:hover { background: var(--primary-hover); }

.empty-state {
  min-height: 280px;
  display: grid;
  place-items: center;
  align-content: center;
  color: var(--muted);
  text-align: center;
}

.empty-state[hidden] { display: none; }
.empty-state svg { width: 34px; height: 34px; }
.empty-state h3 { margin: 14px 0 0; color: var(--ink); font-size: 16px; }
.empty-state p { margin: 6px 0 0; font-size: 13px; }

.ranking-summary {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 15px;
  margin-top: 28px;
  padding: 22px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.summary-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #9d5b1f;
  background: #fff0df;
}

.summary-icon svg { width: 21px; height: 21px; }

.ranking-summary h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 700;
}

.ranking-summary p {
  margin: 7px 0 0;
  color: #53605c;
  font-size: 13px;
  line-height: 1.8;
}

.trust-band {
  background: #1d2925;
  color: #ffffff;
}

.trust-inner {
  min-height: 124px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 36px;
}

.trust-inner > div {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.trust-inner svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  color: #e1a74e;
}

.trust-inner span {
  display: flex;
  flex-direction: column;
  color: #aeb9b5;
  font-size: 12px;
  line-height: 1.55;
}

.trust-inner strong { color: #ffffff; font-size: 14px; font-weight: 600; }

.site-footer { background: #15201c; color: #87938e; }

.footer-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 11px;
  line-height: 1.6;
}

.footer-inner p { margin: 0; }

.demo-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 40;
  max-width: calc(100% - 28px);
  padding: 11px 16px;
  transform: translateX(-50%);
  border-radius: 7px;
  color: #ffffff;
  background: #1d2925;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  font-size: 13px;
  text-align: center;
}

.demo-toast[hidden] { display: none; }

@media (max-width: 980px) {
  .intro-inner { gap: 36px; }
  .intro-summary { grid-template-columns: 100px; }
  .intro-summary div { min-height: 58px; padding: 9px 14px; }
  .intro-summary strong { font-size: 23px; }
  .intro-summary span { margin-top: 2px; }
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .header-inner,
  .intro-inner,
  .guidance-inner,
  .catalog,
  .trust-inner,
  .footer-inner { width: min(calc(100% - 28px), var(--content)); }

  .header-inner { min-height: 62px; }
  .brand-copy small { display: none; }
  .site-nav { gap: 18px; }
  .site-nav a:not(.is-active) { display: none; }
  .intro-inner { min-height: 0; grid-template-columns: 1fr; gap: 24px; padding-top: 34px; padding-bottom: 34px; }
  h1 { font-size: 30px; }
  .intro-copy > p { font-size: 14px; }
  .intro-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
  .intro-summary div { min-height: 64px; padding: 8px 12px; }
  .intro-summary strong { font-size: 21px; }
  .guidance-inner { grid-template-columns: 1fr; gap: 20px; padding-top: 24px; padding-bottom: 24px; }
  .guidance-inner ol { grid-template-columns: 1fr; gap: 8px; }
  .catalog { padding-top: 38px; padding-bottom: 46px; }
  .catalog-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .catalog-heading h2 { font-size: 23px; }
  .catalog-tools { align-items: stretch; flex-direction: column; gap: 12px; }
  .search-box { width: 100%; }
  .filter-tabs { width: 100%; }
  .filter-button { flex: 1; padding: 0 8px; }
  .app-grid { grid-template-columns: minmax(0, 1fr); }
  .app-card { min-height: 0; }
  .trust-inner { grid-template-columns: 1fr; gap: 22px; padding-top: 30px; padding-bottom: 30px; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 8px; padding-top: 24px; padding-bottom: 24px; }
}

@media (max-width: 380px) {
  .brand-mark { width: 34px; height: 34px; }
  .brand-copy strong { font-size: 15px; }
  h1 { font-size: 27px; }
  .intro-summary div { padding-left: 8px; padding-right: 8px; }
  .intro-summary span { font-size: 11px; }
  .app-card { padding: 17px; }
  .app-head { grid-template-columns: 54px minmax(0, 1fr); gap: 11px; }
  .app-icon { width: 54px; height: 54px; }
  .card-meta { align-items: flex-start; flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card-action { transition: none; }
}
