:root {
  color-scheme: dark;
  --text: #fff7ef;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #180000;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

.poster-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 0;
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 94, 43, 0.18), transparent 22%),
    linear-gradient(180deg, #140000 0%, #2d0000 40%, #180000 100%);
}

.poster-shell {
  width: min(100%, 430px);
  min-height: 100vh;
  padding: 0 0 14px;
}

.poster-frame {
  position: relative;
  width: 100%;
  background: #1d0000;
  box-shadow: var(--shadow);
}

.poster-image {
  display: block;
  width: 100%;
  height: auto;
}

.poster-overlay {
  position: absolute;
  inset: 0;
}

.cta-hotspot {
  position: absolute;
  left: 7%;
  top: 42.15%;
  width: 86%;
  height: 7.7%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  overflow: hidden;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.01);
}

.cta-label {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  top: 53%;
  display: block;
  width: 100%;
  text-align: center;
  color: #fffef8;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transform: translateY(-4%) translateX(4px);
  text-shadow:
    0 1px 0 rgba(149, 10, 0, 0.45),
    0 3px 8px rgba(0, 0, 0, 0.16);
}

.device-box {
  margin-top: 10px;
  padding: 0 16px;
}

.device-copy,
.countdown-copy {
  margin: 0;
  color: var(--text);
  text-align: center;
  line-height: 1.55;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.42);
}

.device-copy {
  font-size: 12px;
}

.countdown-copy {
  margin-top: 4px;
  font-size: 12px;
  color: #ffd98b;
}

@media (min-width: 520px) {
  .poster-shell {
    width: 430px;
    padding: 14px 0 18px;
  }

  .poster-frame {
    border-radius: 18px;
    overflow: hidden;
  }

  .cta-label {
    font-size: 34px;
  }
}

.ios-guide-modal[hidden] {
  display: none;
}

.ios-guide-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
}

.ios-guide-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.ios-guide-card {
  position: relative;
  width: min(100%, 360px);
  padding: 22px 18px 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, #fff7ef 0%, #ffe7d2 100%);
  color: #441408;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.ios-guide-card h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
}

.ios-guide-intro {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: #7b3122;
}

.ios-guide-steps {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.ios-step-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(188, 98, 72, 0.16);
}

.ios-step-badge {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(180deg, #ff5f4e 0%, #d7140d 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.ios-step-body strong {
  display: block;
  font-size: 15px;
  line-height: 1.25;
}

.ios-step-body p {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: #7b3122;
}

.ios-guide-tip {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(126, 49, 32, 0.08);
}

.ios-guide-tip-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #7e3120;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.ios-guide-tip p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #7b3122;
}

.ios-guide-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.ios-guide-button {
  flex: 1;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.ios-guide-button-secondary {
  background: #f2d4c6;
  color: #7e3120;
}

.ios-guide-button-primary {
  background: linear-gradient(180deg, #ff4d3a 0%, #d7140d 100%);
  color: #fff;
}
