/* PLC110移植线刷工具 注册页 */
:root {
  --bg: #060b16;
  --panel: rgba(16, 26, 46, .82);
  --card: #0f1a2f;
  --border: #21304e;
  --border-2: #2d4066;
  --text: #edf3ff;
  --muted: #8ea1c4;
  --accent: #3b82f6;
  --accent-2: #22d3ee;
  --ok: #34d399;
  --danger: #f87171;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei UI", "PingFang SC", "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
}

body {
  background:
    radial-gradient(1100px 620px at 8% -6%, rgba(37, 99, 235, .30), transparent 62%),
    radial-gradient(900px 560px at 96% 10%, rgba(34, 211, 238, .13), transparent 60%),
    radial-gradient(900px 700px at 55% 118%, rgba(99, 102, 241, .12), transparent 62%),
    var(--bg);
  background-attachment: fixed;
}

/* 细网格背景 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 78%);
  pointer-events: none;
}

a { color: #7dd3fc; text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { position: relative; max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ---------- 顶部导航 ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0 10px;
}

.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark {
  width: 44px; height: 44px;
  border-radius: 13px;
  display: grid; place-items: center;
  font-weight: 800; font-size: 22px; color: #04121f;
  background: linear-gradient(135deg, #3b82f6, #22d3ee);
  box-shadow: 0 10px 30px rgba(34, 211, 238, .28);
}
.brand-name { font-size: 17px; font-weight: 700; letter-spacing: .4px; }
.brand-sub { color: var(--muted); font-size: 12px; margin-top: 2px; }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 18px;
  border-radius: 11px;
  border: 1px solid var(--border-2);
  background: rgba(22, 35, 61, .72);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background .16s, border-color .16s, transform .08s;
  white-space: nowrap;
}
.btn:hover { background: #1b2c4b; border-color: #3a5380; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, #2563eb, #0891b2);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 26px rgba(37, 99, 235, .32);
}
.btn-primary:hover { background: linear-gradient(135deg, #3b82f6, #06b6d4); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-sm { padding: 7px 13px; font-size: 12px; border-radius: 9px; }

/* ---------- 首屏 ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 56px;
  align-items: center;
  padding: 64px 0 84px;
}

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, .3);
  background: rgba(34, 211, 238, .07);
  color: #a5f3fc;
  font-size: 12px;
  letter-spacing: .4px;
}
.chip .pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 0 rgba(34, 211, 238, .55);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, .55); }
  70% { box-shadow: 0 0 0 9px rgba(34, 211, 238, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}

.hero h1 {
  margin: 24px 0 0;
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.14;
  letter-spacing: .5px;
  font-weight: 800;
}
.hero h1 .grad {
  background: linear-gradient(100deg, #60a5fa 0%, #22d3ee 55%, #a5f3fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
  margin: 20px 0 0;
  max-width: 520px;
}

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 34px; }
.feature {
  padding: 16px 15px;
  border-radius: 13px;
  border: 1px solid var(--border);
  background: rgba(15, 26, 47, .62);
}
.feature-title { font-size: 13px; font-weight: 600; margin-top: 9px; }
.feature-desc { color: var(--muted); font-size: 12px; line-height: 1.6; margin-top: 4px; }
.feature-icon {
  width: 32px; height: 32px; border-radius: 9px;
  display: grid; place-items: center;
  background: rgba(59, 130, 246, .14);
  border: 1px solid rgba(59, 130, 246, .28);
  color: #93c5fd; font-size: 15px;
}

.announcement {
  margin-top: 26px;
  padding: 15px 17px;
  border-radius: 13px;
  border: 1px solid rgba(251, 191, 36, .26);
  background: rgba(251, 191, 36, .055);
  color: #fde68a;
  font-size: 12.5px;
  line-height: 1.75;
  white-space: pre-line;
  max-width: 560px;
}
.announcement b { color: #fbbf24; }

/* ---------- 注册卡片 ---------- */
.card {
  position: relative;
  border-radius: 20px;
  border: 1px solid rgba(45, 64, 102, .8);
  background: linear-gradient(170deg, rgba(23, 36, 62, .94), rgba(13, 22, 40, .96));
  box-shadow: 0 34px 90px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .04);
  padding: 34px 32px 30px;
  backdrop-filter: blur(12px);
}
.card::after {
  content: "";
  position: absolute; inset: -1px;
  border-radius: 21px;
  padding: 1px;
  background: linear-gradient(140deg, rgba(59, 130, 246, .5), transparent 38%, transparent 68%, rgba(34, 211, 238, .35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.card-title { font-size: 20px; font-weight: 700; letter-spacing: .3px; }
.card-sub { color: var(--muted); font-size: 12px; margin-top: 5px; line-height: 1.6; }

.status-tag {
  font-size: 11px;
  color: #a7f3d0;
  border: 1px solid rgba(52, 211, 153, .35);
  background: rgba(52, 211, 153, .09);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.status-tag.closed { color: #fecaca; border-color: rgba(248, 113, 113, .4); background: rgba(248, 113, 113, .09); }

.field { margin-bottom: 15px; }
.field label { display: block; color: var(--muted); font-size: 12.5px; margin-bottom: 7px; }
.field .input-wrap { position: relative; }
.field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 11px;
  border: 1px solid var(--border-2);
  background: rgba(7, 13, 26, .8);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder { color: #5b6c8d; }
.field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .16);
}
.field input.has-eye { padding-right: 58px; }
.eye {
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 12px;
  padding: 7px 10px;
  cursor: pointer;
  border-radius: 7px;
}
.eye:hover { background: rgba(148, 163, 184, .1); color: var(--text); }

.hint { color: var(--muted); font-size: 11.5px; line-height: 1.65; margin-top: 6px; }
.card .btn { width: 100%; padding: 13px; font-size: 14px; margin-top: 7px; }

.msg {
  display: none;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.6;
  margin-bottom: 16px;
  border: 1px solid transparent;
  white-space: pre-line;
}
.msg.show { display: block; }
.msg-error { color: #fecaca; background: rgba(248, 113, 113, .1); border-color: rgba(248, 113, 113, .35); }
.msg-ok { color: #a7f3d0; background: rgba(52, 211, 153, .1); border-color: rgba(52, 211, 153, .35); }
.msg-info { color: #bfdbfe; background: rgba(59, 130, 246, .1); border-color: rgba(59, 130, 246, .35); }

.success-panel { display: none; text-align: center; padding: 22px 0 8px; }
.success-panel.show { display: block; }
.success-icon {
  width: 68px; height: 68px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 30px; color: #052e1f;
  background: linear-gradient(135deg, #34d399, #6ee7b7);
  box-shadow: 0 16px 40px rgba(52, 211, 153, .3);
}
.success-title { font-size: 20px; font-weight: 700; }
.success-text { color: var(--muted); font-size: 13px; line-height: 1.8; margin: 10px 0 18px; }
.success-text b { color: #d1fae5; }

.divider { display: flex; align-items: center; gap: 12px; color: #64748b; font-size: 11.5px; margin: 22px 0 18px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: rgba(45, 64, 102, .7); }

.card-foot { color: var(--muted); font-size: 12px; line-height: 1.8; text-align: center; }
.card-foot a { color: #93c5fd; }

.site-foot {
  border-top: 1px solid rgba(33, 48, 78, .65);
  padding: 22px 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #64748b;
  font-size: 12px;
}
.site-foot .links { display: flex; gap: 18px; }
.site-foot a { color: #64748b; }
.site-foot a:hover { color: #94a3b8; }

.notice {
  margin-bottom: 18px;
  padding: 12px 15px;
  border-radius: 11px;
  border: 1px solid rgba(251, 191, 36, .3);
  background: rgba(251, 191, 36, .07);
  color: #fde68a;
  font-size: 12.5px;
  line-height: 1.7;
}

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; gap: 34px; padding: 44px 0 66px; }
  .features { grid-template-columns: 1fr 1fr; }
  .card { max-width: 560px; }
  .site-foot { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 540px) {
  .wrap { padding: 0 18px; }
  .features { grid-template-columns: 1fr; }
  .card { padding: 26px 20px 24px; }
  .nav .brand-sub { display: none; }
}
