:root {
  color-scheme: light;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #172033;
  --muted: #677084;
  --line: #e2e6ec;
  --blue: #3157d5;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

header {
  height: 68px;
  padding: 0 max(24px, calc((100vw - 1040px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--text);
  color: white;
  font-size: 14px;
}

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

main { max-width: 1040px; margin: 0 auto; padding: 52px 24px 80px; }

.search {
  width: min(100%, 460px);
  height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 0 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
}

.search:focus-within { border-color: #aebbe7; box-shadow: 0 0 0 3px #e8ecfb; }
.search span { font-size: 22px; line-height: 1; }
.search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; }
.search input::placeholder { color: #9aa2b1; }

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

.service-card {
  min-height: 116px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}

.service-card:hover { border-color: #c9d0dc; box-shadow: 0 8px 24px rgba(20, 32, 55, .08); transform: translateY(-2px); }
.service-mark { position: relative; width: 44px; height: 44px; display: grid; place-items: center; overflow: hidden; border-radius: 8px; font-weight: 700; }
.service-icon { position: absolute; inset: 0; width: 100%; height: 100%; padding: 8px; background: white; object-fit: contain; }
.mark-0 { background: #e8edff; color: #3157d5; }
.mark-1 { background: #e5f5ee; color: #227551; }
.mark-2 { background: #fff0df; color: #a25416; }
.mark-3 { background: #f1eafa; color: #7040a0; }
.service-copy { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.service-copy strong { overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.service-copy > span { color: var(--muted); font-size: 13px; }
.service-copy small { overflow: hidden; color: #959dad; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.arrow { color: #9aa2b1; font-size: 18px; }
.empty { color: var(--muted); font-size: 14px; }

@media (max-width: 680px) {
  header { padding: 0 18px; }
  main { padding: 32px 18px 60px; }
  .search { width: 100%; }
  .service-grid { grid-template-columns: 1fr; }
}
