/* 共用样式：移动端 H5，紫粉主题（和竞品一致） */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; background: #f6f4fa; color: #2d2342; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; }
#app { max-width: 480px; margin: 0 auto; min-height: 100vh; background: linear-gradient(180deg, #f9f5ff 0%, #f1ecfb 100%); padding-bottom: 60px; }
.page { padding: 22px 18px 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* 顶部品牌 */
.brand { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.logo { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, #b388ff, #ff7eb3); color: #fff; display: grid; place-items: center; font-weight: 700; }
.brand-text { font-size: 13px; color: #6e5e9c; }
.title { font-size: 26px; line-height: 1.3; margin: 18px 0 14px; color: #261a4d; font-weight: 800; }
.title span { display: block; font-size: 14px; font-weight: 500; color: #8779b9; margin-top: 4px; }
.bullets { list-style: none; padding: 0; margin: 0 0 22px; color: #5c4d87; font-size: 14px; line-height: 1.9; }

.card, .code-card, .pay-card { background: #fff; border-radius: 16px; padding: 16px; box-shadow: 0 6px 24px rgba(160,108,245,0.08); margin-bottom: 12px; }
.card-title { font-weight: 700; margin-bottom: 10px; color: #2d2342; }

.input { width: 100%; padding: 14px 14px; border: 1px solid #e2d8f7; border-radius: 12px; font-size: 15px; outline: none; background: #faf7ff; }
.input:focus { border-color: #a06cf5; }

.btn-primary { width: 100%; padding: 14px; border: 0; border-radius: 14px; background: linear-gradient(135deg, #a06cf5, #ff7eb3); color: #fff; font-weight: 700; font-size: 16px; box-shadow: 0 6px 16px rgba(160,108,245,0.35); margin-top: 10px; }
.btn-primary[disabled] { opacity: .6; box-shadow: none; }
.hint { color: #999; font-size: 12px; margin: 8px 2px 0; }
.footer-mini { text-align: center; color: #a59ec0; font-size: 12px; margin: 22px 0 0; }

.back { background: #fff; border: 0; width: 34px; height: 34px; border-radius: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.06); font-size: 18px; color: #2d2342; }
.page-title { font-size: 22px; font-weight: 800; margin: 14px 0 4px; }
.page-sub { color: #8779b9; font-size: 13px; margin: 0 0 18px; }

.upload-box { display: block; border: 2px dashed #cdbff0; background: #fff; border-radius: 18px; aspect-ratio: 3/4; display: grid; place-items: center; overflow: hidden; position: relative; cursor: pointer; }
.upload-box.has-image { border-style: solid; border-color: transparent; }
.upload-box img { width: 100%; height: 100%; object-fit: cover; }
.upload-tip { text-align: center; color: #6a5d92; }
.upload-icon { font-size: 44px; color: #a06cf5; font-weight: 300; }
.upload-sub { font-size: 12px; color: #a59ec0; margin-top: 6px; }
.tips { color: #6a5d92; font-size: 13px; padding-left: 16px; margin: 16px 0 20px; }

.scan { position: relative; width: 220px; height: 220px; margin: 40px auto 30px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 6px #fff, 0 16px 36px rgba(160,108,245,0.25); }
.ring { position: absolute; inset: -6px; border-radius: 50%; border: 4px solid transparent; border-top-color: #a06cf5; border-right-color: #ff7eb3; animation: spin 1.2s linear infinite; }
.scan-bar { position: absolute; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, transparent, #a06cf5, transparent); animation: bar 2s ease-in-out infinite; }
.scan-photo { width: 100%; height: 100%; object-fit: cover; }
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes bar { 0%,100% { top: 0; } 50% { top: 100%; } }
.steps { list-style: none; padding: 0; margin: 0; text-align: center; color: #b8adcf; font-size: 14px; line-height: 2; }
.steps li.active { color: #5b3fb8; font-weight: 600; }
.steps li.done { color: #4caf50; }
.progress-text { text-align: center; color: #8779b9; }

.score-card { text-align: center; background: linear-gradient(135deg, #c69bff, #ff8db4); color: #fff; border-radius: 18px; padding: 26px 16px; box-shadow: 0 12px 28px rgba(160,108,245,0.35); margin-bottom: 20px; }
.score-num { font-size: 56px; font-weight: 800; }
.score-num span { font-size: 18px; opacity: .85; font-weight: 500; }
.score-meta { margin-top: 6px; font-size: 14px; }
.score-desc { font-size: 13px; opacity: .92; margin: 8px 0 0; line-height: 1.6; }
.block-title { margin: 18px 4px 10px; font-size: 17px; font-weight: 800; color: #2d2342; }
.row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.chip { display: inline-block; padding: 6px 12px; border-radius: 999px; background: #efe6ff; color: #5b3fb8; font-size: 12px; margin-right: 6px; margin-bottom: 4px; }
.chip.purple { background: #c69bff; color: #fff; }
.chip.light { background: #f1ecfb; color: #6a5d92; }
.kv { font-size: 13px; color: #4a3f72; line-height: 1.8; margin: 6px 0; }
.kv b { color: #2d2342; margin-right: 4px; }
.kv .ul { padding-left: 18px; margin: 6px 0 0; }

.match-row { display: flex; gap: 12px; align-items: flex-start; }
.match-icon { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, #ede2ff, #ffd7ea); color: #a06cf5; display: grid; place-items: center; font-size: 18px; flex-shrink: 0; }
.match-info { flex: 1; }
.match-name { font-weight: 700; }
.match-name .sim { color: #a06cf5; margin-left: 6px; }
.match-desc { color: #6a5d92; font-size: 13px; margin: 4px 0; }
.match-tags { display: flex; flex-wrap: wrap; }

.pay-card { background: linear-gradient(180deg, #fff7fb, #fff); border: 1px dashed #ffc1dc; }
.pay-line1 { font-weight: 700; margin-bottom: 8px; }
.pay-price { color: #ff4f7d; font-size: 16px; margin: 6px 0 10px; }
.pay-price b { font-size: 26px; }
.pay-fine { color: #aaa; font-size: 11px; text-align: center; margin: 6px 0 0; }

.aes-card { padding: 14px 16px; }
.aes-head { display: flex; justify-content: space-between; align-items: center; }
.aes-region { font-weight: 700; }
.aes-score { color: #a06cf5; font-weight: 800; font-size: 20px; }
.aes-score span { font-size: 12px; color: #b8adcf; font-weight: 500; }
.aes-desc { color: #6a5d92; font-size: 13px; margin: 4px 0 8px; }

.feat-card { padding: 14px 16px; }
.feat-head { display: flex; align-items: center; gap: 8px; }
.feat-emoji { font-size: 18px; }
.feat-name { font-weight: 700; }
.feat-tags { margin: 8px 0 6px; }
.ul { padding-left: 18px; margin: 4px 0; color: #4a3f72; font-size: 13px; line-height: 1.8; }

.agree-box { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #6a5d92; margin: 14px 4px 0; }
.agree-box a { color: #a06cf5; font-weight: 600; }
.agree-box input { width: 16px; height: 16px; accent-color: #a06cf5; }
.agree-content p { font-size: 13px; color: #4a3f72; line-height: 1.8; margin: 8px 0; }
.agree-content b { color: #2d2342; }

.report-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.report-head-title { font-weight: 700; }
.report-head-score { color: #a06cf5; font-weight: 800; font-size: 22px; }
.bottom-disclaim { text-align: center; color: #aaa; font-size: 11px; margin-top: 30px; }
