:root {
  --ink: #13213a;
  --muted: #657588;
  --line: #e5ebef;
  --soft: #f4f8f8;
  --teal: #187980;
  --teal-dark: #123f52;
  --green: #07c160;
  --gold: #f3c65a;
  --paper: #ffffff;
  --shadow: 0 14px 36px rgba(19, 33, 58, .1);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #eaf1f3;
}

button {
  font: inherit;
}

.app-shell {
  width: min(100%, 860px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 14px 14px calc(88px + env(safe-area-inset-bottom));
}

.page {
  display: none;
}

.page.is-active {
  display: block;
}

.hero {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 18px;
  align-items: center;
  padding: 24px 20px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #112a48 0%, #187980 58%, #f3c65a 128%);
  box-shadow: var(--shadow);
}

.hero-photo {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,.78);
  background: rgba(255,255,255,.25);
}

.eyebrow,
.section-head p,
.page-title p {
  margin: 0 0 3px;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: 36px;
  line-height: 1.08;
}

.role {
  margin: 8px 0 0;
  font-size: 17px;
  font-weight: 700;
}

.summary {
  margin: 12px 0 0;
  color: rgba(255,255,255,.9);
  font-size: 15px;
  line-height: 1.75;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.hero-tags button,
.project-tag,
.dish-tag {
  border: 0;
  border-radius: 999px;
  padding: 6px 11px;
  color: #fff;
  background: rgba(255,255,255,.2);
  font-size: 12px;
  font-weight: 700;
}

.quick-panel,
.section,
.contact-card,
.info-section.contact-info {
  margin-top: 12px;
  padding: 16px;
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 1px 0 rgba(19, 33, 58, .04);
}

.contact-row,
.contact-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.action,
.contact-button {
  min-height: 52px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #fff;
  font-weight: 800;
}

.action-phone,
.contact-button.phone {
  background: var(--teal-dark);
}

.action-wechat,
.contact-button.wechat {
  background: var(--green);
}

.info-section {
  margin-top: 16px;
}

.info-section h2,
.contact-card h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.info-item {
  padding: 13px 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fbfcfd;
}

.info-item:nth-child(2n) {
  border-right: 0;
}

.info-item:nth-last-child(-n+2) {
  border-bottom: 0;
}

.info-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.info-value {
  margin-top: 6px;
  font-size: 19px;
  font-weight: 800;
}

.section-head {
  margin-bottom: 12px;
}

.section-head p,
.page-title p {
  color: var(--muted);
}

.section-head h2,
.page-title h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
}

.service-list,
.care-list,
.simple-list {
  display: grid;
  gap: 10px;
}

.service-card,
.care-card,
.simple-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  background: #fbfcfd;
}

.service-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
}

.service-index {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--teal);
  font-size: 14px;
  font-weight: 900;
}

.service-title,
.care-title,
.simple-title,
.dish-name {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
}

.service-type {
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.service-desc,
.care-desc,
.simple-desc,
.dish-effect {
  margin: 11px 0 0;
  color: #56697a;
  font-size: 15px;
  line-height: 1.75;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.project-tag {
  color: var(--teal);
  background: #e8f4f3;
}

.more-button,
.simple-more {
  margin-top: 12px;
  padding: 0;
  border: 0;
  color: var(--teal);
  background: transparent;
  font-size: 14px;
  font-weight: 800;
}

.page-title {
  padding: 18px 4px 12px;
}

.page-title span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.care-card {
  background: var(--paper);
}

.care-card .more-button {
  color: #4c8790;
}

.simple-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  background: var(--paper);
}

.simple-more {
  margin-top: 0;
  white-space: nowrap;
}

.meal-layout {
  height: calc(100vh - 172px);
  min-height: 520px;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
}

.meal-tabs {
  overflow-y: auto;
  border-radius: 12px;
  background: #f8fbfb;
  border: 1px solid var(--line);
}

.meal-tab {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  font-size: 15px;
  font-weight: 900;
}

.meal-tab.is-active {
  color: #fff;
  background: var(--teal);
}

.meal-content {
  overflow-y: auto;
  padding-right: 2px;
}

.meal-count {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.dish-list {
  display: grid;
  gap: 10px;
}

.dish-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}

.dish-card img {
  width: 92px;
  height: 92px;
  border-radius: 8px;
  object-fit: cover;
  background: #eef3f4;
}

.dish-card .dish-tag {
  display: inline-flex;
  margin-bottom: 5px;
  color: var(--teal);
  background: #e8f4f3;
}

.effect-label {
  display: block;
  margin-bottom: 2px;
  color: #b18119;
  font-weight: 900;
}

.contact-buttons {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-button {
  min-width: 0;
  min-height: 74px;
  padding: 10px 6px;
}

.contact-button span,
.contact-button strong {
  display: block;
  text-align: center;
}

.contact-button span {
  margin-bottom: 4px;
  font-size: 12px;
  opacity: .72;
}

.contact-button strong {
  font-size: 16px;
  line-height: 1.22;
}

.contact-button.share {
  color: var(--teal);
  background: #eaf5f5;
}

.hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 10px;
  z-index: 20;
  width: min(calc(100% - 28px), 760px);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  padding: 8px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
  border: 1px solid rgba(19, 33, 58, .08);
  border-radius: 24px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 12px 32px rgba(19, 33, 58, .18);
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
}

.nav-item {
  min-height: 52px;
  border: 0;
  border-radius: 17px;
  color: #6b7888;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
}

.nav-item span {
  display: block;
  margin-bottom: 2px;
  font-size: 18px;
  line-height: 1;
}

.nav-item.is-active {
  color: var(--teal);
  background: #e8f4f3;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
}

.modal.is-open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 20, 32, .48);
}

.modal-sheet {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(calc(100% - 36px), 620px);
  max-height: min(82vh, 720px);
  overflow-y: auto;
  border-radius: 18px;
  background: var(--paper);
  transform: translate(-50%, -50%);
  box-shadow: 0 24px 80px rgba(0,0,0,.22);
}

.modal-close {
  position: sticky;
  top: 12px;
  float: right;
  z-index: 2;
  width: 30px;
  height: 30px;
  margin: 12px 12px 0 0;
  border: 0;
  border-radius: 50%;
  color: #a3adb8;
  background: #f2f5f7;
  font-size: 18px;
  line-height: 1;
}

.modal-content {
  padding: 24px 20px 20px;
}

.modal-content h2 {
  margin: 0 34px 12px 0;
  font-size: 24px;
}

.modal-image {
  display: block;
  width: 100%;
  max-height: 62vh;
  object-fit: contain;
  border-radius: 10px;
  background: #f7f8f9;
}

.detail-group {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.detail-group h3 {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 16px;
}

.detail-group ul {
  margin: 0;
  padding-left: 18px;
  color: #536677;
  line-height: 1.8;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 98px;
  z-index: 80;
  max-width: min(320px, calc(100% - 32px));
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(19, 33, 58, .92);
  font-size: 14px;
  opacity: 0;
  transform: translate(-50%, 10px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 560px) {
  .app-shell {
    padding-inline: 10px;
  }

  .hero {
    grid-template-columns: 88px 1fr;
    gap: 12px;
    padding: 18px 14px;
    border-radius: 14px;
  }

  .hero-photo {
    width: 88px;
    height: 88px;
  }

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

  .role {
    font-size: 15px;
  }

  .summary {
    grid-column: 1 / -1;
    margin-top: 2px;
    font-size: 14px;
  }

  .hero-tags {
    grid-column: 1 / -1;
  }

  .quick-panel,
  .section,
  .contact-card,
  .info-section.contact-info {
    padding: 14px;
  }

  .section-head h2,
  .page-title h1 {
    font-size: 24px;
  }

  .dish-card {
    grid-template-columns: 82px 1fr;
  }

  .dish-card img {
    width: 82px;
    height: 82px;
  }
}

@media (min-width: 760px) {
  .page.is-active {
    animation: fadeIn .18s ease-out;
  }

  .meal-layout {
    grid-template-columns: 90px 1fr;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
