:root {
  --brand-red: #a31f1f;
  --brand-red-dark: #8f1b1b;
  --accent-gold: #c8a24a;
  --bg-light: #f4efe4;
  --line: rgba(176, 152, 122, 0.28);
  --page-bg-image: url("../../小图/微信图片_20260414214619_122_535.jpg");
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: #e8e2d5;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #2f2520;
}

button,
input {
  font: inherit;
}

.page {
  max-width: 375px;
  min-height: 100vh;
  margin: 0 auto;
  background:
    linear-gradient(rgba(244, 239, 228, 0.76), rgba(244, 239, 228, 0.76)),
    url("../../小图/微信图片_20260414214619_122_535.jpg") center top / cover no-repeat;
  position: relative;
  overflow-x: hidden;
  padding-bottom: 80px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--brand-red);
  color: #fff;
}

.topbar-main {
  height: calc(66px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.back-btn {
  color: #fff;
  text-decoration: none;
  font-size: 34px;
  line-height: 1;
  width: 28px;
}

.topbar h1 {
  margin: 0;
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
}

.topbar-spacer {
  width: 28px;
  height: 1px;
}

.hero {
  background: var(--brand-red);
  padding: 10px 16px 6px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.hero-logo {
  width: 110px;
  height: auto;
  display: block;
}

.hero-text h2 {
  margin: 8px 0 10px;
  color: #fff;
  font-size: 28px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: 1.2px;
  white-space: nowrap;
}

.hero-text p {
  margin: 0;
  color: #f8e9e9;
  font-size: 15px;
  line-height: 1.1;
  letter-spacing: 0.8px;
}

.hero-avatar {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-top: -10px;
  margin-right: -4px;
  transform: scaleX(-1);
}

.content {
  padding: 0 10px 96px;
  margin-top: -14px;
  position: relative;
  z-index: 2;
}

.form-card {
  background: rgba(244, 239, 228, 0.97);
  border: 3px solid #d2b35b;
  border-radius: 22px;
  padding: 15px 18px 18px;
  box-shadow: 0 1px 0 rgba(120, 92, 63, 0.12);
}

.form-card h3 {
  margin: 0 0 9px;
  font-size: 30px;
  line-height: 1;
  color: #2e2420;
  font-weight: 700;
}

.form-card h3 {
  margin: 0 0 9px;
  font-size: 30px;
  line-height: 1;
  color: #2e2420;
  font-weight: 700;
}

.row {
  min-height: 60px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}

.label {
  width: 96px;
  font-size: 15px;
  color: #7c746c;
  font-weight: 600;
}

.value-input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 18px;
  line-height: 1.2;
  color: #211a17;
  font-weight: 700;
  min-width: 0;
}

.value-input::placeholder {
  color: #9a9085;
  font-weight: 500;
}

.code-btn {
  border: 1px solid #d7cec1;
  background: #efe9df;
  color: #9a9085;
  font-size: 13px;
  height: 36px;
  padding: 0 10px;
  border-radius: 2px;
  cursor: pointer;
}

.code-btn:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.bind-btn {
  display: block;
  width: 222px;
  height: 58px;
  margin: 24px auto 16px;
  border: 0;
  border-radius: 29px;
  background: #bb1f1f;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.8px;
}

.bind-btn:active {
  background: var(--brand-red-dark);
}

.agree {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: #73675d;
}

.agree input {
  width: 16px;
  height: 16px;
}

.agree em {
  color: #8e6f5c;
  font-style: normal;
}

.bottom-tab {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: min(375px, 100vw);
  height: calc(70px + env(safe-area-inset-bottom));
  background: #f1ebdf;
  border-top: 1px solid #ded5c3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 6px 2px env(safe-area-inset-bottom);
  z-index: 100;
}

.tab-item {
  text-decoration: none;
  color: #9fa3a9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 12px;
}

.tab-item .icon {
  font-size: 18px;
  line-height: 1;
}

.tab-item.active {
  color: var(--accent-gold);
  font-weight: 600;
}
