:root {
  --modal-bg: #0a0612;
  --panel: linear-gradient(160deg, rgba(88, 28, 135, 0.55) 0%, rgba(40, 16, 72, 0.92) 45%, rgba(18, 8, 31, 0.98) 100%);
  --border: rgba(255, 255, 255, 0.1);
  --text: #f3ecff;
  --muted: rgba(243, 236, 255, 0.65);
  --input-bg: rgba(0, 0, 0, 0.35);
  --accent-from: #7c3aed;
  --accent-to: #ec4899;
  --unlock-from: #4d6bfe;
  --unlock-to: #6b8cff;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ===== 官网静态页 ===== */
.official-page {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow-y: auto;
  overflow-x: hidden;
  background: #fff;
  color: #0f172a;
  pointer-events: none;
  -webkit-overflow-scrolling: touch;
}

.ds-banner {
  min-height: 100%;
  padding: 0 20px 120px;
  background-color: #eef4ff;
  background-image: url("https://www.deepseek.com/_next/static/media/banner-background.d3ff1cbe.png");
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
}

.ds-banner__hire {
  display: none;
  margin: 0 -20px 24px;
  padding: 16px 20px;
  background: #dbeafe;
  color: #1e293b;
  font-size: 14px;
  line-height: 1.6;
}

.ds-banner__hire--mobile {
  display: block;
  margin-top: 56px;
}

.ds-link {
  color: #3b82f6;
  font-weight: 600;
}

.ds-banner__inner {
  max-width: 720px;
  margin: 0 auto;
  padding-top: 24px;
}

.ds-logo-wrap {
  margin-bottom: 28px;
}

.ds-logo-text {
  font-size: 28px;
  font-weight: 800;
  color: #4d6bfe;
  letter-spacing: -0.02em;
}

.ds-news {
  margin: 0 0 32px;
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
}

.ds-hero-title {
  margin: 0 0 36px;
  font-size: clamp(36px, 10vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.ds-cards {
  display: grid;
  gap: 16px;
}

.ds-card {
  padding: 20px 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(77, 107, 254, 0.12);
  box-shadow: 0 8px 24px rgba(77, 107, 254, 0.08);
  backdrop-filter: blur(8px);
}

.ds-card__icon {
  font-size: 24px;
  margin-bottom: 10px;
}

.ds-card__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #0f172a;
}

.ds-card__desc {
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
}

.ds-hire {
  padding: 48px 20px 80px;
  background-color: #f8fafc;
  background-image: url("https://www.deepseek.com/_next/static/media/hire-background.01e08977.png");
  background-position: center;
  background-size: cover;
}

.ds-hire__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.ds-hire h2 {
  margin: 0 0 12px;
  font-size: clamp(22px, 5vw, 32px);
  font-weight: 800;
}

.ds-hire p {
  margin: 0;
  color: #64748b;
  font-size: 15px;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .ds-banner__hire--mobile {
    display: none;
  }

  .ds-banner__inner {
    padding-top: 80px;
  }

  .ds-cards {
    grid-template-columns: 1fr 1fr;
  }
}

/* 透明点击层 — 拦截所有页面点击 */
.page-click-layer {
  position: fixed;
  inset: 0;
  z-index: 50;
  cursor: pointer;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
}

.page-click-layer.is-hidden {
  display: none;
}

.unlock-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0));
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(238, 244, 255, 0.92) 55%, rgba(255, 255, 255, 0.98) 100%);
}

.unlock-btn {
  pointer-events: auto;
  display: block;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  height: 56px;
  padding: 0 24px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--unlock-from) 0%, #5a7dfe 50%, var(--unlock-to) 100%);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(77, 107, 254, 0.35);
  -webkit-tap-highlight-color: transparent;
}

.unlock-btn:active {
  transform: scale(0.98);
}

/* ===== 号码弹窗 ===== */
.phone-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.28s ease, visibility 0.28s;
}

.phone-modal.is-open {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}

.phone-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.phone-modal__sheet {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 28px 20px calc(24px + env(safe-area-inset-bottom, 0));
  border-radius: 24px 24px 0 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-bottom: none;
  color: var(--text);
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
}

.phone-modal.is-open .phone-modal__sheet {
  transform: translateY(0);
}

.phone-modal__title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
}

.phone-modal__sub {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.phone-modal__box {
  padding: 18px 16px 16px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(124, 58, 237, 0.35), rgba(236, 72, 153, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.phone-modal__label {
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
}

.phone-field {
  display: flex;
  align-items: center;
  height: 50px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--input-bg);
  overflow: hidden;
}

.phone-field:focus-within {
  border-color: rgba(192, 132, 252, 0.7);
}

.phone-field__plus {
  flex: 0 0 auto;
  padding: 0 2px 0 14px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  user-select: none;
}

.phone-field__input {
  flex: 1;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0 12px 0 6px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 16px;
  outline: none;
  -webkit-text-fill-color: #fff;
}

.phone-field__input::placeholder {
  color: rgba(255, 255, 255, 0.38);
  font-size: 14px;
}

.phone-modal__hint {
  margin: 10px 0 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.55);
}

.phone-row {
  display: flex;
  gap: 10px;
}

.country-select {
  flex: 0 0 auto;
  min-width: 96px;
  max-width: 36%;
  height: 50px;
  margin: 0;
  padding: 0 26px 0 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background-color: var(--input-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23c084fc' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  appearance: none;
  -webkit-appearance: none;
  touch-action: manipulation;
}

.phone-input {
  flex: 1;
  min-width: 0;
  height: 50px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--input-bg);
  color: #fff;
  font-size: 16px;
  outline: none;
  -webkit-text-fill-color: #fff;
}

.phone-input::placeholder {
  color: rgba(255, 255, 255, 0.38);
  font-size: 14px;
}

.phone-input:focus,
.country-select:focus {
  border-color: rgba(192, 132, 252, 0.7);
}

.btn-continue {
  width: 100%;
  height: 54px;
  margin: 0;
  padding: 0 20px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-from), var(--accent-to));
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(124, 58, 237, 0.4);
}

.btn-continue:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  box-shadow: none;
}

.error {
  min-height: 18px;
  margin: 0 0 10px;
  color: #fda4af;
  font-size: 13px;
  text-align: center;
}
