:root{font-family:-apple-system,BlinkMacSystemFont,"Noto Sans CJK SC","Microsoft YaHei",sans-serif;color:#191919;background:#fff;font-size:16px}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}main{max-width:600px;min-height:100dvh;margin:auto;display:flex;flex-direction:column}button,input,textarea{font:inherit}button{cursor:pointer;border:0;border-radius:4px;background:#07c160;color:#fff;min-height:44px;padding:10px 18px}button:disabled{opacity:.5;cursor:wait}button:focus-visible,summary:focus-visible,a:focus-visible{outline:2px solid #576b95;outline-offset:3px}.top{height:56px;display:flex;align-items:center;justify-content:space-between;padding:0 10px;flex-shrink:0}.top button{color:#191919;background:transparent;padding:8px;white-space:nowrap}.top .icon-button{font-size:30px;line-height:1;min-width:44px}.top #history{font-size:17px}.top #nav-title{font-size:16px}.top #history[hidden]{display:block!important;visibility:hidden}.entry{flex:1;display:flex;flex-direction:column}.entry header{margin-top:46px}section[data-page]{padding:0 30px 28px}header{text-align:center;margin:40px 0 52px}h1{font-size:20px;font-weight:400;margin:0 0 20px}header p{font-size:15px;line-height:1.6;margin:0}.purpose-list{margin-top:0}.purpose-row{display:flex;align-items:center;text-align:left;gap:12px;width:100%;border-radius:0;border-top:1px solid #e5e5e5;padding:18px 0;background:#fff;color:#191919}.purpose-row:last-child{border-bottom:1px solid #e5e5e5}.purpose-row:hover{background:#fafafa}.purpose-row>span:nth-child(2){flex:1}.purpose-row strong{font-size:17px;font-weight:400}.purpose-row small{display:block;color:#777;font-size:13px;line-height:1.55;margin-top:10px}.purpose-icon{align-self:flex-start;font-size:26px;line-height:1;color:#07c160;width:24px;flex-shrink:0}.chevron{font-size:30px;color:#b2b2b2}.entry-footer{margin-top:auto;padding-top:80px;text-align:center;color:#888;font-size:12px;line-height:1.8}.entry-footer p{margin-bottom:4px}summary{cursor:pointer;color:#576b95}details p{color:#777}.entry-footer summary{list-style:none}.entry-footer summary::-webkit-details-marker{display:none}.date-row{display:flex;align-items:center;border-bottom:1px solid #eee;min-height:64px;gap:12px}.date-row label{flex:1;white-space:nowrap;margin:0}.date-row input{width:180px;text-align:right;border:0;background:transparent;padding-right:0}.muted{color:#888;font-size:13px;line-height:1.6;overflow-wrap:anywhere}.primary-wide{display:block;margin:32px auto 8px;min-width:180px;max-width:100%;font-size:17px}.text-button{background:transparent;color:#576b95;padding:8px 0}.connection{border-bottom:1px solid #eee;margin-bottom:24px;padding-bottom:16px}.connection .muted{margin:8px 0}.connection strong{font-weight:400}.login-row{display:flex;gap:8px}.login-row input{min-width:0;flex:1}.login-row button{white-space:nowrap;font-size:14px;padding:6px 12px}.login-row .text-button{padding:6px}label{display:block;font-size:15px;margin:16px 0 10px}input,textarea{border:1px solid #dedede;background:#fff;border-radius:6px;padding:12px;width:100%;color:#191919}textarea{resize:vertical;font:12px/1.6 monospace}.actions{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.file-button{position:relative;overflow:hidden;color:#576b95;cursor:pointer;min-height:44px;padding:12px 0;margin:0}.file-button input{position:absolute;inset:0;opacity:0;cursor:pointer}.confirm{display:flex;align-items:flex-start;color:#777;font-size:13px;line-height:1.6;gap:8px;margin-top:20px}.confirm input{width:18px;height:18px;margin:1px 0;flex-shrink:0;accent-color:#07c160}.data-help{margin-top:12px;font-size:13px}.report{padding:22px 0;border-bottom:1px solid #e5e5e5}.report-heading{display:flex;gap:12px;justify-content:space-between;align-items:center}.report-heading strong{font-size:15px;font-weight:400}.badge{font-size:12px;color:#07a653;white-space:nowrap}.report-stats{display:flex;gap:16px;font-size:13px;flex-wrap:wrap;color:#666}.report .actions{margin-top:12px;gap:10px}.report .actions button{font-size:13px;min-height:36px;padding:8px 12px;background:#f2f2f2;color:#576b95}.report .actions button.preferred{background:#07c160;color:#fff}.report .provenance{font-size:11px;color:#999}.success{color:#07c160;font-size:54px;margin-bottom:22px}#message{margin:12px 30px;color:#d93025;font-size:13px;line-height:1.6;overflow-wrap:anywhere;background:#fde8e8;border:1px solid #f8b4b4;padding:10px 14px;border-radius:6px}footer{margin-top:auto;padding:28px 24px;color:#aaa;font-size:12px;text-align:center}@media(max-width:360px){section[data-page]{padding-left:20px;padding-right:20px}.login-row{flex-wrap:wrap}.report-heading{align-items:flex-start;flex-direction:column}.date-row input{width:155px}}@media(min-width:700px){main{border-left:1px solid #f5f5f5;border-right:1px solid #f5f5f5}}@media(prefers-reduced-motion:no-preference){button{transition:background-color .12s}}

/* ===== 微信现代质感样式扩展 ===== */
body.import-body{background:#f6f8fa;color:#1f2329}
.import-main{max-width:620px;margin:0 auto;background:#fff;min-height:100vh;box-shadow:0 0 24px rgba(0,0,0,.03);display:flex;flex-direction:column}
.modern-nav{height:54px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;background:#fff;border-bottom:1px solid #ebeef2;position:sticky;top:0;z-index:20}
.brand-title{font-size:16px;font-weight:600;color:#1f2329;display:flex;align-items:center;gap:6px}
.brand-icon{display:inline-block;width:20px;height:20px;color:#07c160;vertical-align:middle}
.nav-link{text-decoration:none;font-size:15px;color:#576b95;padding:6px 0;font-weight:400}
.nav-link:hover{color:#38507c}

.hero-box{padding:24px 20px 16px;text-align:center}
.hero-box h1{font-size:22px;font-weight:600;margin:0 0 8px;color:#111}
.hero-box p{font-size:14px;color:#666;line-height:1.6;margin:0}

/* 分段选项卡 Segmented Control */
.tab-switcher{display:flex;background:#ebeef2;border-radius:12px;padding:4px;margin:0 20px 22px;gap:4px}
.tab-btn{flex:1;border:0;border-radius:8px;padding:10px 12px;background:transparent;color:#5c6b7d;font-size:14px;font-weight:500;min-height:40px;cursor:pointer;transition:all .15s ease;display:flex;align-items:center;justify-content:center;gap:6px}
.tab-btn.active{background:#fff;color:#07c160;font-weight:600;box-shadow:0 2px 8px rgba(0,0,0,.07)}
.tab-btn:hover:not(.active){color:#111;background:rgba(255,255,255,.5)}

.card{background:#fff;border:1px solid #ebeef2;border-radius:12px;padding:20px;margin-bottom:18px;box-shadow:0 2px 10px rgba(0,0,0,.02)}
.card h2{font-size:16px;font-weight:600;margin:0 0 8px;color:#1f2329;display:flex;align-items:center;gap:8px}
.card-desc{font-size:13px;color:#788290;line-height:1.55;margin:0 0 16px}
.card-tip{background:#f0fbf5;border-left:4px solid #07c160;padding:11px 14px;border-radius:0 8px 8px 0;font-size:13px;color:#2c6b45;line-height:1.6;margin-bottom:14px}

/* 上传拖拽区 */
.drop-zone{border:2px dashed #07c160;border-radius:12px;background:#f8fbf9;padding:26px 16px;text-align:center;cursor:pointer;transition:all .18s ease;position:relative}
.drop-zone:hover,.drop-zone.dragover{background:#edf8f2;border-color:#06ad56;transform:scale(1.002)}
.drop-zone .drop-icon{font-size:36px;color:#07c160;margin-bottom:8px}
.drop-zone p{margin:4px 0;font-size:14px;color:#222}
.drop-zone .drop-muted{font-size:12px;color:#888}
.file-badge{display:inline-flex;align-items:center;gap:8px;background:#e8f7ee;color:#078f47;padding:8px 14px;border-radius:20px;font-size:13px;margin-top:12px;word-break:break-all;font-weight:500}

/* 智能嗅探解析卡片 */
.sniff-box{background:linear-gradient(135deg,#f2fbf6 0%,#eaf8f0 100%);border:1px solid #bcead0;border-radius:12px;padding:16px 18px;margin-top:16px;box-shadow:0 2px 8px rgba(7,193,96,.06)}
.sniff-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.sniff-title{font-size:15px;font-weight:600;color:#078f47;display:flex;align-items:center;gap:6px}
.sniff-badge{background:#07c160;color:#fff;font-size:11px;font-weight:600;padding:3px 8px;border-radius:10px}
.sniff-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.sniff-item{background:rgba(255,255,255,.9);border:1px solid rgba(7,193,96,.2);border-radius:8px;padding:10px 12px}
.sniff-item small{display:block;color:#718277;font-size:12px;margin-bottom:2px}
.sniff-item strong{font-size:14px;color:#1f2329;word-break:break-all}
.sniff-loading{display:flex;align-items:center;justify-content:center;gap:8px;color:#078f47;font-size:14px;padding:12px}

/* 账号连接卡片 (老用户) */
.account-badge{background:#f0fbf5;border:1px solid #bcead0;border-radius:10px;padding:12px 16px;margin-bottom:16px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.account-badge-main{display:flex;align-items:center;gap:10px}
.account-badge-avatar{width:36px;height:36px;border-radius:50%;background:#07c160;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:16px;flex-shrink:0}
.account-badge-title{font-size:14px;font-weight:600;color:#1f2329}
.account-badge-meta{font-size:12px;color:#558667;margin-top:2px}

/* 结果呈现 */
.token-result-card{background:#f8fbf9;border:1px solid #bcead0;border-radius:12px;padding:24px 20px;margin-top:20px;text-align:center}
.token-box{display:flex;gap:8px;margin:14px 0}
.token-box input{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:14px;letter-spacing:.5px;font-weight:600;background:#fff;color:#078f47;border:1px solid #07c160;padding:12px 14px;border-radius:6px}
.stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:16px 0;text-align:center}
.stat-item{background:#f8f9fb;border:1px solid #ebeef2;padding:12px 8px;border-radius:8px}
.stat-item small{display:block;color:#86909c;font-size:12px;margin-bottom:4px}
.stat-item strong{font-size:18px;color:#1f2329}
.stat-item strong.highlight{color:#07c160}

.field-group{margin-bottom:14px}
.field-group label{font-size:14px;font-weight:500;margin:0 0 6px;color:#333}
.field-group input{width:100%;border:1px solid #dedede;border-radius:6px;padding:11px 12px;font-size:14px;background:#fff}
.field-group input:focus{border-color:#07c160;outline:none}

.pulse{animation:pulse 1.5s infinite}
@keyframes pulse{0%{opacity:1}50%{opacity:.5}100%{opacity:1}}
