/* 官网宠保卡录屏流程：观感对齐小程序，PC/手机都能点 */
:root {
  --pc-pink: #ff5f8e;
  --pc-pink-soft: rgba(255, 95, 142, 0.22);
  --pc-blue: #004474;
  --pc-blue-btn: #004474;
  --pc-detail: #42a5da;
  --pc-bg: #f5f6f8;
  --pc-text: #222;
  --pc-muted: #666;
  --pc-line: #eee;
  --pc-safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  background: #e8eaed;
  color: var(--pc-text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue",
    "Microsoft YaHei", sans-serif;
  min-height: 100%;
}

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

button {
  font-family: inherit;
  border: none;
  cursor: pointer;
  appearance: none;
  background: none;
}

.pc-shell {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--pc-bg);
  position: relative;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
}

.pc-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 48px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--pc-line);
}

.pc-nav-back {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  font-size: 22px;
  line-height: 1;
}

.pc-nav-title {
  font-size: 17px;
  font-weight: 600;
  color: #111;
}

.pc-nav-side {
  width: 40px;
}

.pc-page {
  padding: 12px 16px 120px;
}

/* —— 卡列表 —— */
.pc-card-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pc-status {
  display: none;
  margin: 8px 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff;
  color: var(--pc-muted);
  font-size: 14px;
  text-align: center;
}

.pc-status.is-error {
  color: #c62828;
  background: #ffebee;
}

.pc-card-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid transparent;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  cursor: pointer;
}

.pc-card-item.is-active {
  border-color: var(--pc-pink);
  box-shadow: 0 8px 18px var(--pc-pink-soft);
}

.pc-card-img {
  width: 100%;
  display: block;
  border-radius: 12px;
  vertical-align: top;
}

.pc-card-face {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pc-card-face-fallback {
  background: linear-gradient(135deg, #ff7aa8 0%, #ff4d7d 45%, #004474 100%);
}

.pc-card-face::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.35) 100%
  );
  pointer-events: none;
}

.pc-card-face > * {
  position: relative;
  z-index: 1;
}

.pc-card-face-a {
  background-image: linear-gradient(135deg, #ff7aa8 0%, #ff4d7d 45%, #c93a6e 100%),
    url("../../static/picture/01.jpg");
  background-blend-mode: soft-light;
}

.pc-card-face-b {
  background-image: linear-gradient(135deg, #4db6e2 0%, #2a7bb8 50%, #004474 100%),
    url("../../static/picture/04.jpg");
  background-blend-mode: soft-light;
}

.pc-card-face-c {
  background-image: linear-gradient(135deg, #ffb347 0%, #ff8c42 45%, #e85d4c 100%),
    url("../../static/picture/03.jpg");
  background-blend-mode: soft-light;
}

.pc-card-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.pc-card-desc {
  margin-top: 6px;
  font-size: 13px;
  opacity: 0.92;
}

.pc-card-price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.pc-card-price-yen {
  font-size: 16px;
  font-weight: 600;
}

.pc-card-price {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}

.pc-card-price-unit {
  font-size: 13px;
  opacity: 0.9;
  margin-left: 4px;
}

.pc-card-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--pc-pink);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.pc-card-item.is-active .pc-card-check {
  display: flex;
}

.pc-card-detail-btn {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  min-width: 84px;
  height: 30px;
  padding: 0 12px;
  border-radius: 18px;
  background: var(--pc-detail);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pc-bottom-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 480px;
  padding: 12px 16px calc(12px + var(--pc-safe-bottom));
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--pc-line);
  display: flex;
  gap: 12px;
  z-index: 30;
}

.pc-btn {
  flex: 1;
  height: 44px;
  border-radius: 22px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pc-btn-ghost {
  background: #fff;
  color: var(--pc-blue);
  border: 1px solid #cfd8e3;
}

.pc-btn-primary {
  background: var(--pc-blue-btn);
  color: #fff;
}

.pc-btn-primary:active,
.pc-btn:active {
  opacity: 0.88;
}

/* —— 详情弹层 —— */
.pc-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.pc-mask.is-open {
  display: flex;
}

.pc-dialog {
  width: 100%;
  max-width: 360px;
  max-height: 70vh;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pc-dialog-head {
  display: flex;
  justify-content: flex-end;
  padding: 10px 12px 0;
}

.pc-dialog-close {
  width: 28px;
  height: 28px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.1);
  color: #666;
  font-size: 16px;
  line-height: 28px;
  text-align: center;
}

.pc-dialog-body {
  padding: 8px 18px 20px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.7;
  color: #444;
}

.pc-dialog-body h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #111;
}

.pc-dialog-body p {
  margin: 0 0 8px;
}

/* —— 收银台 —— */
.pc-pay-amount {
  text-align: center;
  padding: 28px 16px 8px;
}

.pc-pay-yen {
  font-size: 28px;
  font-weight: 600;
  vertical-align: top;
  margin-right: 2px;
}

.pc-pay-money {
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -1px;
}

.pc-pay-timer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  color: var(--pc-muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.pc-pay-timer strong {
  color: #e5484d;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.pc-pay-panel {
  background: #fff;
  margin: 0 0 24px;
  padding: 0 16px 20px;
}

.pc-pay-panel-title {
  font-size: 14px;
  color: var(--pc-muted);
  padding: 16px 0;
  border-bottom: 1px solid var(--pc-line);
}

.pc-pay-method {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--pc-line);
  cursor: pointer;
}

.pc-pay-method:last-of-type {
  border-bottom: none;
}

.pc-pay-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  flex-shrink: 0;
}

.pc-pay-method-name {
  flex: 1;
  font-size: 16px;
}

.pc-pay-radio {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pc-pay-method.is-active .pc-pay-radio {
  border-color: var(--pc-blue);
  background: var(--pc-blue);
}

.pc-pay-method.is-active .pc-pay-radio::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}

.pc-pay-submit {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(16px + var(--pc-safe-bottom));
  width: calc(100% - 32px);
  max-width: 448px;
  height: 44px;
  border-radius: 22px;
  background: var(--pc-blue-btn);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  z-index: 30;
}

.pc-pay-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

/* —— 支付中遮罩 —— */
.pc-paying {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.35);
  display: none;
  align-items: center;
  justify-content: center;
}

.pc-paying.is-open {
  display: flex;
}

.pc-paying-box {
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  border-radius: 12px;
  padding: 22px 28px;
  text-align: center;
  min-width: 120px;
}

.pc-spinner {
  width: 28px;
  height: 28px;
  margin: 0 auto 12px;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: pc-spin 0.7s linear infinite;
}

@keyframes pc-spin {
  to {
    transform: rotate(360deg);
  }
}

/* —— 成功页 —— */
.pc-success {
  padding: 40px 20px 40px;
  text-align: center;
}

.pc-success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ff7aa8, #ff5f8e);
  color: #fff;
  font-size: 36px;
  line-height: 72px;
  font-weight: 700;
  box-shadow: 0 10px 24px var(--pc-pink-soft);
}

.pc-success-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pc-success-sub {
  font-size: 14px;
  color: var(--pc-muted);
  margin-bottom: 24px;
}

.pc-benefit-card {
  text-align: left;
  background: #fff;
  border-radius: 16px;
  padding: 18px 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.pc-benefit-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.pc-benefit-tag {
  display: inline-block;
  font-size: 12px;
  color: var(--pc-pink);
  background: rgba(255, 95, 142, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 14px;
}

.pc-benefit-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pc-benefit-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--pc-line);
  font-size: 15px;
}

.pc-benefit-list li span:last-child {
  color: var(--pc-detail);
  font-size: 13px;
}

.pc-success-actions {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pc-success-actions .pc-btn {
  width: 100%;
}

/* 首页 banner 样式已拆到 static/css/petcare-banner.css，勿在本文件再写全局首页规则 */

@media (min-width: 992px) {
  body.pc-flow-body {
    background: #dfe3e8;
  }
}
