@font-face {
  font-family: "LocalFa";
  src: url("../assets/fonts/fa-solid-900.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: block;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #111;
  background: #ececec;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

.phone-page {
  position: relative;
  max-width: 390px;
  min-height: 100vh;
  margin: 0 auto;
  overflow-x: hidden;
  background: #f1f1f1;
  padding-bottom: 88px;
}

.hero {
  position: relative;
  height: 198px;
  overflow: hidden;
  background: #45a1f4;
}

.hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.notice {
  padding: 16px 20px 15px;
  background: #fff;
}

.notice h2 {
  margin: 0 0 9px;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 600;
}

.notice p {
  margin: 0;
  color: #6f6f6f;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 400;
}

.product-section {
  margin-top: 17px;
  background: #fff;
}

.section-tab {
  position: relative;
  height: 38px;
  background: linear-gradient(90deg, #fff1dd 0%, #fff5eb 55%, #fff 100%);
}

.section-tab span {
  position: absolute;
  left: 0;
  top: 0;
  width: 188px;
  height: 38px;
  padding: 0 28px 0 13px;
  border-radius: 0;
  color: #fff;
  background: linear-gradient(90deg, #ff8742, #ff5b21);
  clip-path: path("M0 0H158C171 0 176 6 180 19L188 38H0Z");
  font-size: 17px;
  line-height: 38px;
  font-weight: 700;
}

.section-tab span::after {
  display: none;
}

.section-tab b {
  position: relative;
  z-index: 1;
}

.product-scroll {
  display: flex;
  gap: 14px;
  overflow-x: scroll;
  overflow-y: hidden;
  padding: 11px 11px 21px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  cursor: grab;
  user-select: none;
}

.product-scroll::-webkit-scrollbar {
  display: none;
}

.product-scroll.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.product-card {
  flex: 0 0 166px;
  scroll-snap-align: start;
}

.thumb {
  position: relative;
  height: 166px;
  overflow: hidden;
  border-radius: 12px;
  background: #f7fbff;
}

.thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.product-info {
  position: relative;
  min-height: 96px;
  padding: 12px 34px 0 8px;
}

.product-info h3 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 600;
}

.term {
  margin: 0 0 8px;
  color: #9b9b9b;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 400;
}

.price {
  color: #ff1e1e;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 500;
}

.price-line {
  display: flex;
  align-items: baseline;
  white-space: nowrap;
}

.old-price {
  margin-left: 4px;
  color: #aaa;
  font-size: 12px;
  text-decoration: line-through;
}

.desc {
  margin: 7px 0 0;
  color: #aaa;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 400;
}

.add-btn {
  position: absolute;
  right: 1px;
  top: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: #ff174e;
  font-family: "LocalFa";
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
  text-align: center;
}

.fixed-actions {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: min(354px, calc(100vw - 32px));
  transform: translateX(-50%);
}

.action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  border-radius: 27px;
  color: #fff;
  text-decoration: none;
  font-size: 19px;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(0,0,0,.12);
}

.action-blue {
  background: #1682f8;
}

.action-orange {
  background: #ff7e12;
}

.fa-icon {
  font-family: "LocalFa";
  font-style: normal;
  font-size: 22px;
  font-weight: 900;
}

.detail-page {
  background: #f1f1f1;
}

.detail-hero {
  position: relative;
  height: 354px;
  overflow: hidden;
  background: #fff8ed;
}

.detail-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-tools {
  position: absolute;
  left: 10px;
  top: 16px;
  display: flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 16px;
  color: #fff;
  background: rgba(95, 95, 95, .62);
  font-family: "LocalFa";
  font-size: 14px;
}

.detail-tools span {
  width: 1px;
  height: 14px;
  margin: 0 10px;
  background: rgba(255,255,255,.75);
}

.detail-hero em {
  position: absolute;
  right: 10px;
  bottom: 11px;
  min-width: 39px;
  height: 22px;
  border-radius: 13px;
  color: #fff;
  background: rgba(106, 102, 96, .68);
  text-align: center;
  font-style: normal;
  font-size: 13px;
  line-height: 22px;
}

.detail-summary {
  padding: 19px 18px 15px;
  background: #fff;
}

.detail-summary h1 {
  margin: 0 0 18px;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 600;
}

.detail-service-term {
  margin: -10px 0 15px;
  color: #929292;
  font-size: 13px;
}

.member-price-panel {
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 5px;
  background: #fff7f3;
}

.current-price-box {
  padding: 11px 12px 13px;
  border-bottom: 5px solid #fff;
}

.price-box-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  color: #8e8e8e;
  font-size: 12px;
}

.current-price-box > strong {
  color: #f02626;
  font-size: 25px;
  line-height: 1;
  font-weight: 500;
}

.member-price-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  padding: 12px;
  color: #333;
  font-size: 12px;
}

.member-price-list > div {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.member-price-list strong {
  color: #ff3131;
  font-size: 18px;
  font-weight: 500;
}

.member-price-list > div:first-child strong {
  color: #ffad21;
}

.member-price-list p {
  grid-column: 2;
  margin: 0;
  color: #444;
  font-size: 11px;
  line-height: 1.4;
}

.member-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 13px;
  margin-right: 4px;
  border-radius: 2px;
  color: #fff;
  background: #45c96a;
  font-size: 7px;
  font-weight: 700;
}

.member-icon.source { background: #e33a3a; }
.member-icon.supreme { background: #324d98; }

.share-card {
  overflow: hidden;
  border-radius: 9px;
  background: linear-gradient(100deg, #fff4e5, #fff0e9);
}

.share-title {
  height: 29px;
  padding-left: 20px;
  color: #fff;
  background: linear-gradient(90deg, #ff914f, #ff7435);
  font-size: 14px;
  line-height: 29px;
  font-weight: 500;
}

.share-body {
  position: relative;
  min-height: 67px;
  padding: 13px 16px 10px 20px;
}

.avatar-list {
  display: flex;
  align-items: center;
}

.avatar-list i {
  position: relative;
  width: 24px;
  height: 24px;
  margin-right: -5px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd36a, #ff8c55);
}

.avatar-list i::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff7e8;
}

.avatar-list i::after {
  content: "";
  position: absolute;
  left: 5px;
  bottom: 4px;
  width: 12px;
  height: 7px;
  border-radius: 9px 9px 4px 4px;
  background: #fff7e8;
}

.avatar-list i:nth-child(2) {
  background: linear-gradient(135deg, #64cdfc, #2667d8);
}

.avatar-list i:nth-child(3) {
  background: linear-gradient(135deg, #8fd46f, #187d67);
}

.avatar-list i:nth-child(4) {
  background: linear-gradient(135deg, #f1b27b, #8b5d43);
}

.avatar-list i:nth-child(5) {
  background: linear-gradient(135deg, #64e0df, #1a82d7);
}

.avatar-list span {
  margin-left: 13px;
  color: #9a9a9a;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 2px;
}

.share-body button {
  position: absolute;
  right: 18px;
  top: 13px;
  width: 102px;
  height: 30px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: #ff5522;
  font-size: 15px;
  line-height: 30px;
  font-weight: 500;
}

.share-body p {
  margin: 7px 0 0;
  color: #a7a7a7;
  font-size: 11px;
  line-height: 1.2;
}

.detail-block {
  margin-top: 18px;
  padding: 18px 18px;
  background: #fff;
}

.detail-block h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 600;
}

.detail-description {
  margin-top: 1px;
  padding-top: 18px;
}

.detail-description h2 {
  margin-bottom: 20px;
}

.detail-description img {
  display: block;
  width: 100%;
  border-radius: 0;
}

.rich-content {
  color: #333;
  font-size: 14px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.rich-content img {
  max-width: 100%;
  height: auto;
}

.data-status {
  margin: 18px 0 0;
  padding: 30px 20px;
  color: #888;
  background: #fff;
  text-align: center;
  font-size: 14px;
}

.data-status.error {
  color: #d33;
}

@media (max-width: 390px) {
  .phone-page {
    max-width: none;
  }
}
