:root {
  --brand: #c91623;
  --brand-dark: #8f1019;
  --text: #222;
  --muted: #666;
  --subtle: #f7f8fa;
  --line: #e8e8e8;
  --card: #fff;
}

* {
  box-sizing: border-box;
}

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

body {
  font-size: 16px;
}

.page {
  width: 100%;
  min-height: 100vh;
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
}

.hero {
  min-height: 260px;
  padding: calc(36px + env(safe-area-inset-top)) 24px 36px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(201, 22, 35, 0.94), rgba(143, 16, 25, 0.96)),
    url("./assets/health-bg.svg") center / cover no-repeat;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

.hero h1 {
  margin: 28px 0 12px;
  font-size: 34px;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 520px;
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}

.panel {
  margin: 16px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.panel h2 {
  margin: 0 0 16px;
  font-size: 20px;
  line-height: 1.3;
}

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

.service-item {
  min-height: 168px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.service-item:active {
  transform: scale(0.99);
}

.service-item:focus-visible {
  outline: 2px solid rgba(201, 22, 35, 0.32);
  outline-offset: 2px;
}

.service-item:hover {
  border-color: rgba(201, 22, 35, 0.42);
  box-shadow: 0 8px 22px rgba(26, 26, 26, 0.08);
}

.service-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 22, 35, 0.09);
  color: var(--brand);
  font-weight: 700;
}

.service-item h3 {
  margin: 14px 0 8px;
  font-size: 16px;
}

.service-item p,
.contact-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.service-action {
  display: inline-flex;
  margin-top: 12px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
}

.notice-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 14px;
}

.phone-link {
  display: inline-flex;
  margin-top: 14px;
  min-height: 42px;
  align-items: center;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.footer {
  padding: 8px 20px 0;
  text-align: center;
  color: #8a8a8a;
  font-size: 12px;
  line-height: 1.6;
}

.footer p {
  margin: 4px 0;
}

.dialog-open {
  overflow: hidden;
}

.detail-mask {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.42);
}

.detail-mask[aria-hidden="false"] {
  display: flex;
}

.detail-dialog {
  position: relative;
  width: min(100%, 520px);
  padding: 22px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
}

.detail-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f2f3f5;
  color: #333;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.detail-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 22, 35, 0.09);
  color: var(--brand);
  font-weight: 800;
}

.detail-dialog h2 {
  margin: 16px 44px 8px 0;
  font-size: 21px;
  line-height: 1.35;
}

.detail-dialog p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.detail-steps {
  display: grid;
  gap: 10px;
  margin: 18px 0 20px;
}

.detail-step {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f7f8fa;
  color: #333;
  font-size: 14px;
}

.detail-step span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.detail-primary {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
}

@media (min-width: 720px) {
  .page {
    max-width: 720px;
    margin: 0 auto;
    background: var(--subtle);
  }
}

@media (max-width: 420px) {
  .hero {
    min-height: 238px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .panel {
    margin: 12px;
    padding: 16px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }
}
