@font-face {
  font-family: 'iconfont';
  src: url('../font/iconfont.woff2') format('woff2'),
       url('../font/iconfont.woff') format('woff');
  font-style: normal;
  font-weight: normal;
}

.iconfont {
  font-family: 'iconfont' !important;
  font-style: normal;
  font-size: inherit;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root {
  --brand: #dc3b40;
  --brand-deep: #c72d34;
  --brand-soft: #f8d8dc;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-strong: #ffffff;
  --page-bg: #efecf3;
  --text-main: #333333;
  --text-subtle: #7e7b86;
  --line: rgba(220, 59, 64, 0.10);
  --shadow-soft: 0 12px 30px rgba(130, 72, 90, 0.08);
  --shadow-press: 0 8px 18px rgba(199, 45, 52, 0.22);
}

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

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  background: -webkit-linear-gradient(top, #f5f1f6 0%, #efecf3 18%, #f1edf4 100%);
  background: linear-gradient(180deg, #f5f1f6 0%, #efecf3 18%, #f1edf4 100%);
  background: linear-gradient(180deg, #f5f1f6 0%, var(--page-bg) 18%, #f1edf4 100%);
  color: #333333;
  color: var(--text-main);
}

html,
body {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

body {
  position: relative;
  overflow-y: auto;
}

body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  height: calc(50px + env(safe-area-inset-top));
  background: -webkit-linear-gradient(top left, #c72d34 0%, #dc3b40 58%, #e4575b 100%);
  background: linear-gradient(135deg, #c72d34 0%, #dc3b40 58%, #e4575b 100%);
  background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 58%, #e4575b 100%);
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  padding: 0 12px;
  padding: env(safe-area-inset-top) 12px 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 6px 20px rgba(163, 37, 43, 0.24);
}

.header-back {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  color: #fff;
  font-size: 18px;
  text-decoration: none;
  min-width: 60px;
}

.header-back svg {
  margin-right: 2px;
}

.header-title {
  color: #fff;
  font-size: 19px;
  font-weight: 600;
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
  text-align: center;
  letter-spacing: 1px;
}

.header-right {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  min-width: 60px;
  -webkit-box-pack: end;
  -webkit-justify-content: flex-end;
  justify-content: flex-end;
  background: rgba(255, 255, 255, 0.18);
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  border-radius: 20px;
  padding: 6px 14px;
  letter-spacing: 1px;
  -webkit-transition: background 0.18s ease, opacity 0.18s ease;
  transition: background 0.18s ease, opacity 0.18s ease;
}

.header-right:hover {
  background: rgba(255, 255, 255, 0.28);
}

.header-right:active {
  opacity: 0.82;
}

.header-right svg {
  margin-right: 3px;
}

.page {
  padding-top: 50px;
  padding-top: calc(50px + env(safe-area-inset-top));
  min-height: 100%;
  background: transparent;
  position: relative;
  z-index: 1;
  padding-bottom: 8px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom) + var(--keyboard-height, 0px));
  contain: layout style;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.page::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.form-card {
  background: #fff;
  margin-top: 0;
}

.form-table-wrap {
  width: calc(100% - 24px);
  margin: 14px 12px 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(220, 59, 64, 0.22),
    0 8px 28px rgba(130, 72, 90, 0.10);
  will-change: transform, opacity;
  -webkit-animation: float-up 0.6s ease both;
  animation: float-up 0.6s ease both;
}

.form-table {
  width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  background: rgba(255, 255, 255, 0.94);
  background: var(--surface);
  border: none;
}

.form-table tr {
  background: transparent;
}

.form-table tr:not(:last-child) td {
  border-bottom: 1px solid rgba(220, 59, 64, 0.10);
  border-bottom: 1px solid var(--line);
}

.form-table td {
  min-height: 70px;
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: 18px;
  color: #333333;
  color: var(--text-main);
  vertical-align: middle;
  background: transparent;
}

.form-table .tbl-label {
  padding-left: 16px;
  white-space: nowrap;
  color: #333333;
  color: var(--text-main);
  padding-right: 12px;
  font-weight: 500;
  width: 5.5em;
}

.form-table .tbl-label.required::before {
  content: "*";
  color: #dc3b40;
  color: var(--brand);
  margin-right: 2px;
}

.form-table .tbl-input {
  padding-right: 10px;
}

.field-body,
.pwd-flex {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  width: 100%;
  gap: 8px;
}

.form-table input,
.btn-main,
.btn-outline,
.btn-code {
  -webkit-appearance: none;
  appearance: none;
}

.form-table input {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  font-size: 18px;
  color: #333333;
  color: var(--text-main);
  background: transparent;
  padding: 14px 6px;
  min-height: 44px;
  height: auto;
  line-height: 1.4;
  caret-color: #dc3b40;
  caret-color: var(--brand);
}

.form-table input::-webkit-input-placeholder { color: #bbb; }
.form-table input::-moz-placeholder { color: #bbb; opacity: 1; }
.form-table input::placeholder { color: #bbb; }

.form-table input:focus {
  color: #222;
}


.form-row {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid #e8e8e8;
  min-height: 46px;
}

.form-row:last-child {
  border-bottom: none;
}

.form-label {
  font-size: 17px;
  color: #333;
  min-width: 80px;
  flex-shrink: 0;
}

.form-label.required::before {
  content: "*";
  color: #dc3b40;
  color: var(--brand);
  margin-right: 2px;
}

.form-input {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
  border: none;
  outline: none;
  font-size: 17px;
  color: #333;
  background: transparent;
  padding: 12px 0;
  line-height: 1.4;
}

.form-input::-webkit-input-placeholder { color: #bbb; }
.form-input::-moz-placeholder { color: #bbb; opacity: 1; }
.form-input::placeholder { color: #bbb; }

.eye-toggle {
  padding: 8px 10px 8px 8px;
  cursor: pointer;
  color: #999;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-transition: -webkit-transform 0.18s ease, opacity 0.18s ease;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.eye-toggle:hover {
  opacity: 0.72;
}

.eye-toggle:active {
  -webkit-transform: scale(0.94);
  transform: scale(0.94);
}

.remember-row {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  padding: 14px 16px 8px;
  background: transparent;
  -webkit-animation: fade-up 0.7s ease both;
  animation: fade-up 0.7s ease both;
  animation-delay: 0.08s;
}

.remember-left {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
}

.remember-row input[type=checkbox] {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  accent-color: #dc3b40;
  accent-color: var(--brand);
}

.remember-row label {
  font-size: 16px;
  color: #55515d;
  cursor: pointer;
}

.link-gray {
  color: #8c8892;
  text-decoration: none;
}


.btn-row {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  gap: 14px;
  margin: 12px 22px 24px;
  -webkit-animation: fade-up 0.8s ease both;
  animation: fade-up 0.8s ease both;
  animation-delay: 0.16s;
}
.btn-row .btn-main,
.btn-row .btn-outline {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
  margin: 0;
  width: auto;
}

.btn-main {
  display: block;
  width: calc(100% - 28px);
  margin: 20px 14px;
  height: 54px;
  background: -webkit-linear-gradient(top left, #c72d34 0%, #dc3b40 55%, #eb5a5f 100%);
  background: linear-gradient(135deg, #c72d34 0%, #dc3b40 55%, #eb5a5f 100%);
  background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 55%, #eb5a5f 100%);
  color: #fff;
  font-size: 19px;
  font-weight: 600;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  letter-spacing: 2px;
  box-shadow: 0 8px 18px rgba(199, 45, 52, 0.22);
  box-shadow: var(--shadow-press);
  -webkit-transition: -webkit-transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.btn-main:hover {
  -webkit-transform: translateY(-1px);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(199, 45, 52, 0.24);
}

.btn-main:active {
  opacity: 0.94;
  -webkit-transform: translateY(1px);
  transform: translateY(1px);
  box-shadow: 0 4px 12px rgba(199, 45, 52, 0.16);
}

.btn-main.disabled {
  background: linear-gradient(180deg, #d7d4d8 0%, #c6c2c8 100%);
  cursor: default;
  box-shadow: none;
}

.btn-main.loading,
.btn-outline.loading {
  opacity: 0.65;
  pointer-events: none;
  cursor: default;
}

.btn-outline {
  display: block;
  width: calc(100% - 28px);
  margin: 0 14px 16px;
  height: 54px;
  background: transparent;
  color: #dc3b40;
  color: var(--brand);
  font-size: 19px;
  font-weight: 600;
  border: 2px solid #dc3b40;
  border: 2px solid var(--brand);
  border-radius: 14px;
  cursor: pointer;
  letter-spacing: 2px;
  box-shadow: 0 4px 14px rgba(220, 59, 64, 0.10);
  -webkit-transition: -webkit-transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, opacity 0.18s ease;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.btn-outline:hover {
  background: rgba(220, 59, 64, 0.06);
  -webkit-transform: translateY(-1px);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(220, 59, 64, 0.16);
}

.btn-outline:active {
  opacity: 0.92;
  -webkit-transform: translateY(1px);
  transform: translateY(1px);
  box-shadow: 0 4px 12px rgba(110, 105, 117, 0.08);
}

.link-row {
  text-align: center;
  padding: 4px 14px 20px;
  font-size: 16px;
  -webkit-animation: fade-up 0.85s ease both;
  animation: fade-up 0.85s ease both;
  animation-delay: 0.2s;
}

.link-row a {
  color: #dc3b40;
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
  -webkit-transition: opacity 0.18s ease;
  transition: opacity 0.18s ease;
}

.link-row a:hover,
.link-row-right a:hover,
.link-gray:hover {
  opacity: 0.76;
}

.link-row a.link-gray {
  color: #989898;
}

.link-row span {
  color: #ccc;
  margin: 0 6px;
}

.link-row-right {
  text-align: right;
  padding: 10px 16px;
  font-size: 16px;
  color: #7e7b86;
  color: var(--text-subtle);
  -webkit-animation: fade-up 0.75s ease both;
  animation: fade-up 0.75s ease both;
  animation-delay: 0.12s;
}

.link-row-right a {
  color: #dc3b40;
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}

.promo-banner {
  margin: 6px 12px 0;
  background: linear-gradient(180deg, #cf313f 0%, #b8202f 100%);
  padding: 0 0 12px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 26px rgba(160, 32, 48, 0.16);
  -webkit-animation: fade-up 0.9s ease both;
  animation: fade-up 0.9s ease both;
  animation-delay: 0.24s;
}

.promo-img-placeholder {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  width: 100%;
  height: 150px;
  background: #f5e8ea;
  border: 2px dashed #dc3b40;
  color: #999;
}
.promo-img-placeholder > * + * {
  margin-top: 6px;
}

.promo-img-placeholder span {
  font-size: 14px;
  color: #c0606a;
  font-weight: 500;
}

.promo-img-placeholder small {
  font-size: 12px;
  color: #aaa;
}



.promo-banner-header {
  background: linear-gradient(135deg, #c72535 0%, #ff3333 50%, #c72535 100%);
  text-align: center;
  padding: 14px 10px 8px;
  position: relative;
  overflow: hidden;
}

.promo-banner-header::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,220,0,0.18) 0%, transparent 70%);
}

.promo-title {
  font-size: 22px;
  font-weight: 900;
  color: #ffd700;
  text-shadow: 0 2px 6px rgba(150,0,0,0.5), 0 0 12px rgba(255,180,0,0.6);
  letter-spacing: 2px;
  position: relative;
}

.promo-title .gold-coin {
  font-size: 20px;
  vertical-align: middle;
}

.promo-table {
  width: calc(100% - 20px);
  margin: 8px 10px 0;
  border-collapse: collapse;
  border-radius: 4px;
  overflow: hidden;
}

.promo-table th {
  background: #e00;
  color: #ffd700;
  padding: 8px 4px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.2);
  text-align: center;
}

.promo-table td {
  background: #fff;
  color: #c72535;
  padding: 8px 4px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid #f0c0c0;
  text-align: center;
}

.promo-table tr:nth-child(even) td {
  background: #fff5f5;
}

.promo2-header {
  background: linear-gradient(135deg, #a51e2c 0%, #dc3b40 40%, #a51e2c 100%);
  text-align: center;
  padding: 12px 10px 6px;
  margin-top: 6px;
}

.promo2-title {
  font-size: 20px;
  font-weight: 900;
  color: #ffd700;
  text-shadow: 0 2px 6px rgba(100,0,0,0.5);
  letter-spacing: 1px;
}

.promo2-table {
  width: calc(100% - 20px);
  margin: 8px 10px 0;
  border-collapse: collapse;
  overflow: hidden;
}

.promo2-table th {
  background: #c72535;
  color: #fff;
  padding: 8px 4px;
  font-size: 13px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.3);
}

.promo2-table td {
  background: #fff;
  color: #333;
  padding: 8px 4px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  border: 1px solid #f0c0c0;
}

.promo2-table tr:nth-child(even) td {
  background: #fff5f5;
}


.btn-code {
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  min-height: 40px;
  padding: 0 14px;
  margin-right: 0;
  background: rgba(220, 59, 64, 0.08);
  color: #dc3b40;
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(220, 59, 64, 0.24);
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
  line-height: 34px;
  -webkit-transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-code:hover {
  background: rgba(220, 59, 64, 0.12);
  border-color: rgba(220, 59, 64, 0.34);
}

.btn-code:disabled,
.btn-code.counting {
  color: #999;
  border-color: #ccc;
  background: #f3f1f4;
  cursor: default;
}

@-webkit-keyframes float-up {
  0% {
    opacity: 0;
    -webkit-transform: translateY(14px) scale(0.985);
    transform: translateY(14px) scale(0.985);
  }
  100% {
    opacity: 1;
    -webkit-transform: translateY(0) scale(1);
    transform: translateY(0) scale(1);
  }
}
@keyframes float-up {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@-webkit-keyframes fade-up {
  0% {
    opacity: 0;
    -webkit-transform: translateY(12px);
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
}
@keyframes fade-up {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    -webkit-animation: none !important;
    animation: none !important;
    -webkit-transition: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .header {
    background: linear-gradient(135deg, #c72d34 0%, #dc3b40 58%, #e4575b 100%);
  }

  .toast {
    background: rgba(168, 24, 34, 0.98);
  }
}

@media (max-width: 375px) {
  .form-table td {
    min-height: 64px;
    font-size: 16px;
  }

  .form-table .tbl-label,
  .form-table input,
  .btn-main,
  .btn-outline {
    font-size: 17px;
  }

  .form-table .tbl-label {
    padding-left: 12px;
    padding-right: 8px;
  }

  .header-right {
    padding: 6px 10px;
    font-size: 14px;
  }

  .btn-row {
    gap: 10px;
    margin-left: 14px;
    margin-right: 14px;
  }

  .btn-code {
    padding: 0 10px;
    font-size: 13px;
  }
}

@media (max-width: 340px) {
  .form-table,
  .form-table tbody,
  .form-table tr {
    display: block;
  }

  .form-table tr:not(:last-child) td {
    border-bottom: none;
  }

  .form-table tr:not(:last-child) {
    border-bottom: 1px solid rgba(220, 59, 64, 0.10);
    border-bottom: 1px solid var(--line);
  }

  .form-table td {
    display: block;
    min-height: 0;
    padding: 8px 12px;
  }

  .form-table .tbl-label,
  .form-table .tbl-input {
    display: block;
    padding: 0;
    white-space: normal;
  }

  .form-table .tbl-label {
    margin-bottom: 4px;
    font-size: 14px;
  }

  .btn-row {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    flex-direction: column;
  }

  .header-title {
    font-size: 17px;
  }
}

.toast {
  position: fixed;
  bottom: 80px;
  bottom: calc(80px + env(safe-area-inset-bottom));
  left: 50%;
  -webkit-transform: translateX(-50%) translateY(14px);
  transform: translateX(-50%) translateY(14px);
  max-width: calc(100% - 48px);
  padding: 10px 20px;
  background: rgba(168, 24, 34, 0.96);
  color: #fff;
  font-size: 14px;
  line-height: 1.6;
  border-radius: 24px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  -webkit-transition: opacity 0.22s ease, -webkit-transform 0.22s ease;
  transition: opacity 0.22s ease, transform 0.22s ease;
  text-align: center;
  word-break: break-all;
}
.toast.show {
  opacity: 1;
  -webkit-transform: translateX(-50%) translateY(0);
  transform: translateX(-50%) translateY(0);
}

.form-table tr.field-error td {
  background: rgba(220, 59, 64, 0.05);
  -webkit-transition: background 0.2s ease;
  transition: background 0.2s ease;
}
.form-table tr.field-error .tbl-label {
  color: #dc3b40;
  color: var(--brand);
}
.form-table tr.field-error input {
  color: #dc3b40;
  color: var(--brand);
}
.form-table tr.field-error input::placeholder {
  color: rgba(220, 59, 64, 0.45);
}
.field-msg {
  display: none;
  font-size: 12px;
  color: #dc3b40;
  color: var(--brand);
  line-height: 1.4;
  padding-top: 4px;
}

.form-table input:-webkit-autofill,
.form-table input:-webkit-autofill:hover,
.form-table input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.94) inset;
  -webkit-text-fill-color: #333333;
  -webkit-text-fill-color: var(--text-main);
  caret-color: #dc3b40;
  caret-color: var(--brand);
  -webkit-transition: background-color 86400s ease;
  transition: background-color 86400s ease;
}

html,
body {
  overscroll-behavior-y: none;
}
