* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

body {
  font-family:
    "PingFang SC",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  background-color: #121212;
  color: #ffffff;
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  width: 100%;
  min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom);
}

.header {
  padding: 16px;
  display: flex;
  justify-content: space-between;
}

.header img {
  height: 30px;
}

.header .placeholder {
  width: 42px;
}

.header-title {
  font-size: 17px;
  font-weight: 600;
  color: #ffffff;
}

.banner-section {
  position: relative;
  width: 100%;
}
.invite-download {
  position: relative;
}
.invite-download .banner-bg img {
  width: 98px;
  margin: 60px auto 24px;
}

.invite-download .download-card img {
  width: 100%;
}
.banner-bg {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 24px 0 0;
  margin-bottom: 30px;
}

.banner-bg .banner-coin-img {
  display: block;
  width: 256px;
  position: relative;
  z-index: 1;
}

.banner-bg .banner-left-decor {
  position: absolute;
  left: 0;
  bottom: -20px;
  width: 151px;
  z-index: 0;
}

.banner-content {
  position: relative;
  z-index: 1;
  padding: 0 16px;
}

.logo-wrapper {
  width: 98px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.logo-wrapper img {
  width: 290px;
}

.banner-title {
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  line-height: 32px;
  color: #ffffff;
  margin-bottom: 32px;
}

/* 新设计：大标题 */
.banner-heading {
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  line-height: 28px;
  color: #ffffff;
  padding: 20px 16px 0;
}

.banner-heading-highlight {
  margin-left: 8px;
  color: #fd6f23;
}

.invite-highlight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 16px 0 24px;
}

.invite-highlight-text {
  font-size: 14px;
  font-weight: 500;
  color: #fd6f23;
  text-align: center;
}

.invite-highlight-line {
  width: 36px;
  height: 2px;
  background: rgba(253, 111, 35, 0.4);
  flex-shrink: 0;
}
.btn-box {
  display: flex;
  gap: 12px;
  justify-content: space-between;
}
.form-section {
  padding: 0 16px;
  margin-bottom: 18px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group.invite-code-group {
  margin-bottom: 24px;
}

.input-wrapper {
  position: relative;
  background-color: #191919;
  border-radius: 8px;
  height: 52px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  transition: border-color 0.3s ease;
}

.input-wrapper:focus-within {
  border: 1px solid #fd6f23;
}

.input-wrapper input {
  flex: 1;
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 14px;
  font-weight: 400;
}

.input-wrapper input::placeholder {
  color: #888888;
}

.input-label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #888888;
  font-size: 14px;
  pointer-events: none;
  transition: all 0.3s ease;
}

.input-wrapper input:focus + .input-label,
.input-wrapper input:not(:placeholder-shown) + .input-label {
  top: 8px;
  font-size: 10px;
  color: #fd6f23;
}

.invite-code-box {
  background-color: rgba(25, 25, 25, 0.5);
  border-radius: 8px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.invite-code-label {
  font-size: 14px;
  color: #888888;
  margin-bottom: 8px;
}

.invite-code-value {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
}

.invite-code-copy {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.invite-code-copy svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #888888;
  stroke-width: 1.5;
}

.invite-code-copy:hover svg {
  stroke: #fd6f23;
}

.btn-primary {
  width: 100%;
  height: 44px;
  background-color: #ffffff;
  border: none;
  border-radius: 8px;
  color: #000000;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-primary.primary {
  background-color: #fd6f23;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #f0f0f0;
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-primary:disabled {
  background-color: #333333;
  color: #666666;
  cursor: not-allowed;
}

.agreement-text {
  font-size: 12px;
  color: #888888;
  margin-top: 16px;
  line-height: 18px;
}

.agreement-text a {
  color: #fd6f23;
  text-decoration: none;
}

.agreement-text a:hover {
  text-decoration: underline;
}

.features-section {
  padding: 32px 16px;
  background-color: #121212;
}

.features-title {
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 20px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  text-align: center;
}

.feature-card {
  background-color: #191919;
  border: 1px solid #333333;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: #fd6f23;
  background-color: rgba(253, 111, 35, 0.05);
}

.feature-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #ffffff;
  stroke-width: 1.5;
}

.feature-name {
  font-size: 12px;
  font-weight: 500;
  color: #ffffff;
}

.stats-section {
  padding: 32px 16px;
  background-color: #121212;
}
.stats-section > img {
  width: 100%;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.stat-value {
  font-size: 28px;
  font-weight: 600;
  color: #fd6f23;
}

.stat-label {
  font-size: 14px;
  color: #888888;
  text-align: center;
}

.download-section {
  padding: 32px 16px;
  background-color: #121212;
}

.download-card {
  border-radius: 16px;
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.download-title {
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
  line-height: 32px;
}

.download-screenshots {
  display: flex;
  gap: 8px;
  overflow: hidden;
  width: 100%;
  justify-content: center;
}

.screenshot-item {
  width: 140px;
  height: 300px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #333333;
  flex-shrink: 0;
}

.screenshot-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.download-content {
  position: fixed;
  bottom: 0;
  left: 0;
  padding: 20px 16px 30px;
  width: 100%;
  background-color: #121212;
  box-shadow: 0 -50px 50px #121212;
}
.download-btn {
  width: 100%;
  height: 44px;
  background-color: #ffffff;
  border: none;
  border-radius: 8px;
  color: #000000;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.download-btn:hover {
  background-color: #f0f0f0;
}

.download-btn-icon {
  width: 20px;
  height: 20px;
}

.download-btn-icon svg {
  width: 100%;
  height: 100%;
}

.footer-section {
  padding: 24px 16px;
  text-align: center;
  background-color: #121212;
  border-top: 1px solid #191919;
}

.footer-copy {
  font-size: 12px;
  color: #666666;
}

.verification-section {
  padding: 0 16px;
  margin-top: 80px;
}

.verification-timer {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: rgba(253, 111, 35, 0.5);
}

.timer-active {
  color: #fd6f23;
}

.resend-code {
  color: #fd6f23;
  cursor: pointer;
}

.resend-code:hover {
  text-decoration: underline;
}

.success-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.success-content {
  background-color: #191919;
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background-color: #fd6f23;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-icon svg {
  width: 32px;
  height: 32px;
  fill: #ffffff;
}

.success-title {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
}

.success-desc {
  font-size: 14px;
  color: #888888;
}

@media screen and (min-width: 428px) {
  .container {
    max-width: 428px;
    margin: 0 auto;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
  }
}

@media screen and (max-width: 320px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(18, 18, 18, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #333333;
  border-top-color: #fd6f23;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-text {
  font-size: 14px;
  color: #888888;
}

.error-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(18, 18, 18, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.error-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px;
}

.error-icon {
  width: 64px;
  height: 64px;
  background-color: #ff4444;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: bold;
  color: #ffffff;
}

.error-text {
  font-size: 14px;
  color: #888888;
  text-align: center;
}

.error-retry {
  padding: 12px 32px;
  background-color: #ffffff;
  border: none;
  border-radius: 8px;
  color: #000000;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.error-retry:hover {
  background-color: #f0f0f0;
}

.error-message {
  display: none;
  font-size: 12px;
  color: #ff4444;
  margin-top: 8px;
  padding-left: 16px;
}

/* 语言切换器 */
.lang-switcher {
  display: flex;
  justify-content: center;
  padding-bottom:6px;
  position: relative;
}

.lang-switcher-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  /* width: 90px; */
  padding: 0 8px;
  height: 30px;
  background: transparent;
  border: 1px solid #333333;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.lang-switcher-btn:hover {
  border-color: #fd6f23;
}

.lang-switcher-label {
  font-size: 14px;
  color: #888888;
  font-family: "PingFang SC", sans-serif;
  font-weight: 400;
  line-height: 22px;
}

.lang-switcher-arrow {
  width: 10px;
  height: 6px;
  transition: transform 0.2s ease;
}

.lang-switcher.open .lang-switcher-arrow {
  transform: rotate(180deg);
}

.lang-switcher.open .lang-switcher-btn {
  border-color: #fd6f23;
}

.lang-dropdown {
  position: absolute;
  top:100%;
  right: 0;
  background-color: #191919;
  border: 1px solid #333333;
  border-radius: 6px;
  padding: 4px 0;
  min-width: 130px;
  max-height: 240px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.lang-dropdown-item {
  display: block;
  width: 100%;
  padding: 8px 16px;
  background: transparent;
  border: none;
  color: #888888;
  font-size: 14px;
  font-family: "PingFang SC", sans-serif;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lang-dropdown-item:hover {
  color: #ffffff;
  background-color: rgba(253, 111, 35, 0.1);
}

.lang-dropdown-item.active {
  color: #fd6f23;
}

.password-rule {
  font-size: 12px;
  color: #666666;
  margin-top: 8px;
  padding-left: 8px;
}
