:root {
  --primary: #ff6900;
  --primary-hover: #ff8534;
  --primary-active: #e85d00;
  --primary-soft: #fff3eb;
  --text-1: #333333;
  --text-2: #666666;
  --text-3: #999999;
  --text-4: #bbbbbb;
  --border: #e0e0e0;
  --border-light: #eeeeee;
  --bg-page: #f5f5f5;
  --bg-card: #ffffff;
  --danger: #ff4d4f;
  --success: #52c41a;
  --radius: 4px;
  --radius-lg: 8px;
  --shadow-card: 0 2px 12px rgba(0, 0, 0, .06);
  --shadow-panel: 0 1px 4px rgba(0, 0, 0, .04);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { min-height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-1);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }
ul { list-style: none; }

.input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text-1);
  font-size: 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.input::placeholder { color: var(--text-3); }
.input:hover { border-color: #c8c8c8; }
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(255, 105, 0, .12); }
.input.is-error { border-color: var(--danger); }
.input.is-error:focus { box-shadow: 0 0 0 2px rgba(255, 77, 79, .12); }

.btn-primary {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  letter-spacing: 2px;
  transition: background .2s;
}

.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:active { background: var(--primary-active); }
.btn-primary:disabled { background: #ffc999; cursor: not-allowed; }

.btn-outline {
  width: 104px;
  height: 48px;
  flex: 0 0 104px;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  background: #fff;
  color: var(--primary);
  font-size: 13px;
  transition: background .2s;
}

.btn-outline:hover { background: var(--primary-soft); }
.btn-outline:disabled { border-color: var(--border); color: var(--text-4); background: #fafafa; cursor: not-allowed; }

.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  user-select: none;
}

.check input { position: absolute; opacity: 0; width: 0; height: 0; }

.check .box {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  border: 1px solid #c8c8c8;
  border-radius: 2px;
  background: #fff;
  position: relative;
  transition: background .15s, border-color .15s;
}

.check input:checked + .box { background: var(--primary); border-color: var(--primary); }

.check input:checked + .box::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.link { font-size: 13px; color: var(--text-2); transition: color .2s; }
.link:hover { color: var(--primary); }
.link-accent { color: var(--primary); }

.field-error { display: block; margin-top: 6px; color: var(--danger); font-size: 12px; }
.field { position: relative; }

.icon-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: var(--text-3);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.icon-btn:hover { color: var(--primary); }

.toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: var(--radius);
  padding: 10px 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
  font-size: 13px;
  color: var(--text-1);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, top .2s;
}

.toast.show { opacity: 1; top: 32px; }
.toast::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; border-radius: 4px 0 0 4px; background: var(--success); }
.toast.error::before { background: var(--danger); }
