:root {
  --bg-start: #ff9138;
  --bg-end: #ff3561;
  --card-bg: #ffffff;
  --text: #131313;
  --muted: #666;
  --line: #ececec;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: #f2f2f2;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
}

.app {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: 12px;
}

.topbar {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 32px;
  background: linear-gradient(90deg, var(--bg-start), var(--bg-end));
}

.content {
  padding: 12px;
}

.card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 12px;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

.thumbs img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
}

.tag {
  display: inline-block;
  border-radius: 999px;
  background: #d10f78;
  color: #fff;
  padding: 4px 10px;
  font-size: 12px;
  margin-bottom: 6px;
}

.name-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  margin-bottom: 6px;
}

.desc {
  color: var(--text);
  line-height: 1.45;
  font-size: 15px;
  white-space: pre-line;
  margin-bottom: 10px;
}

.contact-btn {
  width: 100%;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 18px;
  padding: 12px 10px;
  background: linear-gradient(90deg, var(--bg-start), var(--bg-end));
  cursor: pointer;
}

.mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease;
}

.sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  width: min(430px, calc(100% - 16px));
  max-height: 42vh;
  transform: translate(-50%, 100%);
  transition: transform .28s ease;
  background: #fff;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  z-index: 10;
}

.sheet-handle {
  width: 44px;
  height: 5px;
  border-radius: 999px;
  background: #ddd;
  margin: 8px auto;
}

.sheet-body {
  padding: 10px 12px 18px;
  max-height: calc(42vh - 28px);
  overflow-y: auto;
}

.sheet-text {
  background: #f9e9ed;
  border-radius: 6px;
  font-size: 15px;
  line-height: 1.7;
  color: #444;
  padding: 12px 10px;
  margin-bottom: 14px;
}

.sheet-link {
  display: block;
  text-align: center;
  text-decoration: none;
  color: #fff;
  border-radius: 999px;
  padding: 12px;
  font-size: 18px;
  background: linear-gradient(90deg, var(--bg-start), var(--bg-end));
}

body.modal-open {
  overflow: hidden;
}

body.modal-open .mask {
  opacity: 1;
  visibility: visible;
}

body.modal-open .sheet {
  transform: translate(-50%, 0);
}
