/* =========================================================
   惜艾集团官网 · 高兼容移动端
   - 无 Flexbox / Grid
   - 流式分块 + 传统盒模型
   ========================================================= */

html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body,
h1,
h2,
h3,
p,
form,
label,
input,
select,
button,
div,
a {
  margin: 0;
  padding: 0;
}

*,
*:before,
*:after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans SC", "Source Han Sans SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #d7ece8;
  background: #051015;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

a {
  color: inherit;
  text-decoration: none;
}

strong {
  color: #b8f5e6;
  font-weight: 700;
}

/* ---------- 页面骨架 ---------- */
.page {
  position: relative;
  width: 100%;
  min-height: 100%;
  overflow: hidden;
  background:
    -webkit-linear-gradient(168deg, #061820 0%, #051015 48%, #0a1c18 100%);
  background:
    linear-gradient(168deg, #061820 0%, #051015 48%, #0a1c18 100%);
}

.shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 8px 22px 44px;
}

.shell-doc {
  padding-top: 36px;
}

/* ---------- 氛围背景（全幅） ---------- */
.bg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(48px);
  -webkit-filter: blur(48px);
  opacity: 0.42;
}

.bg-glow-a {
  left: -100px;
  top: -40px;
  background: #0c6d7a;
}

.bg-glow-b {
  right: -120px;
  top: 220px;
  background: #128066;
  opacity: 0.32;
}

.bg-glow-c {
  left: 20%;
  top: 720px;
  width: 260px;
  height: 260px;
  background: #0a4f5c;
  opacity: 0.28;
}

.bg-grid {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-image:
    -webkit-linear-gradient(rgba(120, 210, 200, 0.035) 1px, transparent 1px),
    -webkit-linear-gradient(90deg, rgba(120, 210, 200, 0.035) 1px, transparent 1px);
  background-image:
    linear-gradient(rgba(120, 210, 200, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 210, 200, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.6;
}

.bg-orbit {
  position: absolute;
  left: 50%;
  top: 120px;
  width: 520px;
  height: 520px;
  margin-left: -260px;
  border: 1px solid rgba(90, 190, 175, 0.12);
  border-radius: 50%;
  -webkit-animation: orbitPulse 8s ease-in-out infinite;
  animation: orbitPulse 8s ease-in-out infinite;
}

@-webkit-keyframes orbitPulse {
  0%, 100% { opacity: 0.35; -webkit-transform: scale(1); transform: scale(1); }
  50% { opacity: 0.7; -webkit-transform: scale(1.04); transform: scale(1.04); }
}

@keyframes orbitPulse {
  0%, 100% { opacity: 0.35; -webkit-transform: scale(1); transform: scale(1); }
  50% { opacity: 0.7; -webkit-transform: scale(1.04); transform: scale(1.04); }
}

/* ---------- Hero 巨幕（全幅背景，内文限宽） ---------- */
.hero {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 42px 0 36px;
  text-align: center;
  background:
    -webkit-linear-gradient(180deg, rgba(8, 36, 42, 0.55) 0%, rgba(5, 16, 21, 0) 100%);
  background:
    linear-gradient(180deg, rgba(8, 36, 42, 0.55) 0%, rgba(5, 16, 21, 0) 100%);
  border-bottom: 1px solid rgba(110, 190, 175, 0.14);
  -webkit-animation: riseIn 0.75s ease both;
  animation: riseIn 0.75s ease both;
}

.hero-inner {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 22px;
}

.brand {
  display: block;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  color: #7fe7d4;
  text-shadow: 0 0 28px rgba(64, 200, 180, 0.4);
  margin-bottom: 18px;
}

.brand-sm {
  font-size: 22px;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  margin-bottom: 14px;
  text-align: center;
}

.hero-kicker {
  display: block;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: #6fb8aa;
  margin-bottom: 14px;
  text-transform: none;
}

.headline {
  display: block;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.04em;
  color: #f2fffb;
  margin-bottom: 16px;
}

.lead {
  display: block;
  max-width: 100%;
  margin: 0 auto 24px;
  font-size: 14px;
  line-height: 1.85;
  color: #9ec4bc;
  text-align: left;
}

/* ---------- CTA ---------- */
.cta-group {
  display: block;
  width: 100%;
  margin-top: 8px;
}

.btn {
  display: block;
  width: 100%;
  height: auto;
  min-height: 50px;
  padding: 14px 16px;
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-align: center;
  border: 0;
  border-radius: 12px;
  -webkit-border-radius: 12px;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  text-decoration: none;
}

.btn-primary {
  color: #04221c;
  background: #3ec9ad;
  background: -webkit-linear-gradient(90deg, #2bb89a 0%, #45d4b8 100%);
  background: linear-gradient(90deg, #2bb89a 0%, #45d4b8 100%);
  box-shadow: 0 10px 28px rgba(46, 180, 150, 0.28);
}

.btn-primary:active {
  background: #2aa88c;
  -webkit-transform: translateY(1px);
  transform: translateY(1px);
}

.btn-ghost {
  color: #9ee8d8;
  background: rgba(10, 32, 36, 0.55);
  border: 1px solid rgba(95, 180, 165, 0.45);
  box-shadow: none;
}

.btn-ghost:active {
  background: rgba(20, 50, 55, 0.75);
}

.btn.is-disabled,
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

/* ---------- 内容板块 ---------- */
.block {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid rgba(110, 190, 175, 0.16);
  -webkit-animation: riseIn 0.8s ease both;
  animation: riseIn 0.8s ease both;
}

.block-label {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: #5fafa0;
  margin-bottom: 10px;
}

.block-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.03em;
  color: #eafaf5;
  margin-bottom: 8px;
}

.block-sub {
  font-size: 13px;
  color: #6f9f96;
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}

.prose {
  display: block;
}

.prose p {
  font-size: 14px;
  line-height: 1.9;
  color: #9bb8b1;
  margin-bottom: 14px;
  text-align: justify;
  text-justify: inter-ideograph;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* 造血模型三支柱：流式分隔，非卡片堆叠 */
.pillar {
  display: block;
  width: 100%;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed rgba(110, 190, 175, 0.22);
}

.pillar-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: #7fe7d4;
  margin-bottom: 8px;
}

.pillar-title {
  font-size: 17px;
  font-weight: 700;
  color: #e2f7f1;
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}

.pillar-text {
  font-size: 14px;
  line-height: 1.85;
  color: #91b0a9;
  text-align: justify;
}

/* ---------- 白皮书页 ---------- */
.doc-title {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  color: #f2fffb;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  line-height: 1.4;
}

.doc-lead {
  text-align: center;
  font-size: 13px;
  color: #7fa79f;
  margin-bottom: 8px;
  line-height: 1.7;
}

/* ---------- 表单区 ---------- */
.register .form-title {
  text-align: left;
  font-size: 20px;
  font-weight: 700;
  color: #e8faf5;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.form-hint {
  font-size: 13px;
  color: #7fa79f;
  margin-bottom: 22px;
  line-height: 1.6;
}

.form {
  width: 100%;
}

.field {
  display: block;
  width: 100%;
  margin-bottom: 16px;
}

.label {
  display: block;
  width: 100%;
  font-size: 13px;
  font-weight: 600;
  color: #9ed9cb;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.optional {
  font-weight: 400;
  letter-spacing: 0;
  color: #6f8f87;
}

.input,
.select {
  display: block;
  width: 100%;
  height: 48px;
  padding: 12px 14px;
  font-size: 16px;
  line-height: 1.3;
  color: #eaf8f4;
  background: rgba(8, 28, 32, 0.88);
  border: 1px solid rgba(95, 180, 165, 0.35);
  border-radius: 10px;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -webkit-border-radius: 10px;
}

.input::-webkit-input-placeholder { color: #5f857d; }
.input::-moz-placeholder { color: #5f857d; }
.input:-ms-input-placeholder { color: #5f857d; }
.input::placeholder { color: #5f857d; }

.input:focus,
.select:focus {
  border-color: #3ec9ad;
  box-shadow: 0 0 0 2px rgba(62, 201, 173, 0.22);
}

.select-wrap {
  position: relative;
  display: block;
  width: 100%;
}

.select-wrap:after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 0;
  height: 0;
  margin-top: -3px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #7fe7d4;
  pointer-events: none;
}

.select {
  padding-right: 40px;
  background-image: none;
  cursor: pointer;
}

.select option {
  color: #1a2e2a;
  background: #fff;
}

.actions {
  display: block;
  width: 100%;
  margin-top: 22px;
}

.form-msg {
  min-height: 22px;
  margin-top: 14px;
  font-size: 14px;
  text-align: center;
  color: #7fe7d4;
}

.form-msg.is-error { color: #ff8f8f; }
.form-msg.is-ok { color: #7fe7d4; }

/* ---------- 登记完成页 ---------- */
.shell-success {
  padding-top: 36px;
  text-align: center;
}

.success-hero {
  -webkit-animation: riseIn 0.7s ease both;
  animation: riseIn 0.7s ease both;
}

.success-mark {
  display: block;
  width: 72px;
  height: 72px;
  margin: 8px auto 18px;
  border-radius: 50%;
  background: rgba(62, 201, 173, 0.16);
  border: 2px solid rgba(127, 231, 212, 0.55);
  position: relative;
  -webkit-animation: markPop 0.55s ease both;
  animation: markPop 0.55s ease both;
}

.success-check {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 32px;
  margin-left: -9px;
  margin-top: -20px;
  border-right: 3px solid #7fe7d4;
  border-bottom: 3px solid #7fe7d4;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

.success-title {
  font-size: 26px;
  font-weight: 700;
  color: #f2fffb;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.success-lead {
  font-size: 14px;
  line-height: 1.8;
  color: #9ec4bc;
  margin-bottom: 8px;
}

.success-summary,
.success-share,
.success-actions {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(110, 190, 175, 0.16);
  text-align: left;
  -webkit-animation: riseIn 0.75s ease both;
  animation: riseIn 0.75s ease both;
}

.success-share {
  -webkit-animation-delay: 0.08s;
  animation-delay: 0.08s;
}

.success-actions {
  -webkit-animation-delay: 0.14s;
  animation-delay: 0.14s;
  text-align: center;
}

.summary-row {
  overflow: hidden;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(110, 190, 175, 0.18);
  font-size: 14px;
}

.summary-k {
  float: left;
  color: #6f9f96;
}

.summary-v {
  float: right;
  color: #e2f7f1;
  font-weight: 600;
}

.share-title {
  font-size: 18px;
  font-weight: 700;
  color: #eafaf5;
  margin-bottom: 8px;
}

.share-desc {
  font-size: 13px;
  color: #7fa79f;
  margin-bottom: 18px;
  line-height: 1.6;
}

.share-toast {
  min-height: 22px;
  margin-top: 12px;
  font-size: 13px;
  text-align: center;
  color: #7fa79f;
}

.share-toast.is-ok { color: #7fe7d4; }
.share-toast.is-error { color: #ff8f8f; }

.text-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  color: #7fe7d4;
  text-decoration: underline;
}

/* 工具：隐藏 */
.hidden {
  display: none !important;
}

/* 微信指引蒙层 */
.wx-mask {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 80;
  background: rgba(2, 10, 12, 0.78);
  display: none;
}

.wx-mask.is-open {
  display: block;
}

.wx-panel {
  position: absolute;
  right: 16px;
  top: 18px;
  width: 78%;
  max-width: 320px;
  padding: 18px 16px 16px;
  background: #0c2226;
  border: 1px solid rgba(127, 231, 212, 0.35);
  border-radius: 12px;
  text-align: left;
  -webkit-box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  z-index: 81;
}

.wx-arrow {
  position: absolute;
  right: 10px;
  top: -8px;
  font-size: 28px;
  color: #7fe7d4;
  line-height: 1;
}

.wx-title {
  font-size: 16px;
  font-weight: 700;
  color: #eafaf5;
  margin-bottom: 8px;
}

.wx-text {
  font-size: 13px;
  line-height: 1.7;
  color: #9bb8b1;
  margin-bottom: 16px;
}

/* 微信内：请在浏览器打开 */
.wx-browser-guide {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 90;
  background: rgba(2, 8, 10, 0.88);
  display: none;
}

.wx-browser-guide.is-open {
  display: block;
}

.wx-browser-panel {
  position: absolute;
  right: 14px;
  top: 16px;
  width: 82%;
  max-width: 340px;
  padding: 20px 16px 16px;
  background: #0c2226;
  border: 1px solid rgba(127, 231, 212, 0.4);
  border-radius: 12px;
  text-align: left;
  -webkit-box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
}

.wx-browser-arrow {
  position: absolute;
  right: 8px;
  top: -10px;
  font-size: 30px;
  color: #7fe7d4;
  line-height: 1;
  -webkit-animation: tipBounce 1.2s ease-in-out infinite;
  animation: tipBounce 1.2s ease-in-out infinite;
}

.wx-browser-title {
  font-size: 18px;
  font-weight: 700;
  color: #f2fffb;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.wx-browser-text {
  font-size: 13px;
  line-height: 1.75;
  color: #9bb8b1;
  margin-bottom: 16px;
}

@-webkit-keyframes tipBounce {
  0%, 100% { -webkit-transform: translate(0, 0); transform: translate(0, 0); }
  50% { -webkit-transform: translate(4px, -4px); transform: translate(4px, -4px); }
}

@keyframes tipBounce {
  0%, 100% { -webkit-transform: translate(0, 0); transform: translate(0, 0); }
  50% { -webkit-transform: translate(4px, -4px); transform: translate(4px, -4px); }
}

@-webkit-keyframes markPop {
  from { opacity: 0; -webkit-transform: scale(0.7); transform: scale(0.7); }
  to { opacity: 1; -webkit-transform: scale(1); transform: scale(1); }
}

@keyframes markPop {
  from { opacity: 0; -webkit-transform: scale(0.7); transform: scale(0.7); }
  to { opacity: 1; -webkit-transform: scale(1); transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .success-mark,
  .success-hero,
  .success-summary,
  .success-share,
  .success-actions {
    -webkit-animation: none;
    animation: none;
  }
}

/* ---------- 入群引导页 ---------- */
.shell-join {
  padding-top: 32px;
}

.join-hero {
  text-align: center;
  -webkit-animation: riseIn 0.7s ease both;
  animation: riseIn 0.7s ease both;
}

.join-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: #f2fffb;
  margin-bottom: 12px;
}

.join-lead {
  font-size: 14px;
  line-height: 1.85;
  color: #9ec4bc;
  text-align: left;
}

.join-steps,
.join-download,
.join-assistants {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(110, 190, 175, 0.16);
  -webkit-animation: riseIn 0.75s ease both;
  animation: riseIn 0.75s ease both;
}

.join-download {
  -webkit-animation-delay: 0.06s;
  animation-delay: 0.06s;
}

.join-assistants {
  -webkit-animation-delay: 0.12s;
  animation-delay: 0.12s;
}

.step-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-list li {
  position: relative;
  padding: 12px 0 12px 42px;
  font-size: 14px;
  line-height: 1.7;
  color: #b7d5ce;
  border-bottom: 1px dashed rgba(110, 190, 175, 0.18);
}

.step-num {
  position: absolute;
  left: 0;
  top: 12px;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #04221c;
  background: #3ec9ad;
  border-radius: 50%;
}

.join-tip {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.6;
  color: #6f8f87;
  text-align: center;
}

.assistant {
  display: block;
  width: 100%;
  margin-bottom: 16px;
  padding: 16px 0 4px;
  border-top: 1px dashed rgba(110, 190, 175, 0.2);
}

.assistant:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.assistant-role {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #5fafa0;
  margin-bottom: 4px;
}

.assistant-name {
  font-size: 18px;
  font-weight: 700;
  color: #eafaf5;
  margin-bottom: 12px;
  letter-spacing: 0.06em;
}

.id-chip {
  display: block;
  width: 100%;
  padding: 14px 14px;
  text-align: left;
  color: #eaf8f4;
  background: rgba(8, 28, 32, 0.92);
  border: 1px solid rgba(95, 180, 165, 0.45);
  border-radius: 12px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.id-chip:active {
  border-color: #3ec9ad;
  background: rgba(14, 42, 46, 0.95);
}

.id-chip.is-copied {
  border-color: #7fe7d4;
  box-shadow: 0 0 0 2px rgba(62, 201, 173, 0.22);
}

.id-label {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #04221c;
  background: #7fe7d4;
  border-radius: 999px;
  vertical-align: middle;
}

.id-value {
  display: inline-block;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #f2fffb;
  font-family: "SF Mono", "Menlo", "Consolas", "Courier New", monospace;
  vertical-align: middle;
}

.id-action {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: #7fe7d4;
  letter-spacing: 0.06em;
}

/* ---------- 页脚 ---------- */
.footer {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(110, 190, 175, 0.14);
  text-align: center;
}

.footer p {
  font-size: 12px;
  color: #5f8078;
  letter-spacing: 0.03em;
  line-height: 1.7;
}

.footer-links {
  margin-top: 8px;
}

.footer-links a {
  color: #7fb8ac;
  text-decoration: none;
}

.footer-links .dot {
  margin: 0 6px;
  color: #3d5c56;
}

/* ---------- 动效 ---------- */
@-webkit-keyframes riseIn {
  from {
    opacity: 0;
    -webkit-transform: translateY(16px);
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    -webkit-transform: translateY(16px);
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
}

#background { -webkit-animation-delay: 0.08s; animation-delay: 0.08s; }
#model { -webkit-animation-delay: 0.12s; animation-delay: 0.12s; }
#register { -webkit-animation-delay: 0.16s; animation-delay: 0.16s; }

@media (prefers-reduced-motion: reduce) {
  .hero,
  .block,
  .bg-orbit {
    -webkit-animation: none;
    animation: none;
  }
}

/* ---------- 窄屏 / 宽屏 ---------- */
@media screen and (max-width: 360px) {
  .hero-inner,
  .shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand {
    font-size: 26px;
    letter-spacing: 0.2em;
    text-indent: 0.2em;
  }

  .headline {
    font-size: 21px;
  }

  .block-title {
    font-size: 18px;
  }
}

@media screen and (min-width: 641px) {
  .hero {
    padding-top: 64px;
    padding-bottom: 48px;
  }

  .headline {
    font-size: 28px;
  }

  .lead {
    font-size: 15px;
    text-align: center;
  }

  .btn-primary:hover {
    filter: brightness(1.05);
    -webkit-filter: brightness(1.05);
  }

  .btn-ghost:hover {
    border-color: rgba(127, 231, 212, 0.7);
    color: #c8fff2;
  }
}
