*{box-sizing:border-box}
body{margin:0;min-height:100vh;padding:22px;display:grid;place-items:center;background:#f4f5fa;color:#443e55;font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif}
.card{position:relative;width:min(674px,100%);min-height:630px;padding:70px 72px 58px;border:1px solid #e5e5ec;border-radius:12px;background:#fff;box-shadow:0 10px 28px rgba(44,38,65,.13)}
.language{position:absolute;right:18px;top:18px;width:235px;padding:9px 16px;border:1px solid #d6d3df;border-radius:10px;background:#fff;color:#50495e;font-size:18px}
.brand{display:flex;align-items:center;justify-content:center;gap:14px;margin:8px 0 52px}
.brand img{width:58px;height:58px;object-fit:cover;border-radius:50%}
.brand strong{font-size:27px}
.welcome{font-size:30px;margin:0 0 12px}
.subtitle{margin:0 0 34px;color:#777184;font-size:20px}
.tabs{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid #ddd9e5}
.tab{padding:14px 8px;text-align:center;font-size:20px;color:#625c6f}
.tab.active{margin-bottom:-1px;border-bottom:3px solid #8b5cf6;color:#8b5cf6;font-weight:700}
.content{text-align:center;padding-top:26px}
.content h2{margin:0 0 12px;font-size:24px}
.hint{margin:0 auto 26px;color:#777184;line-height:1.7;font-size:16px}
.primary,.secondary{border:0;border-radius:11px;padding:14px 27px;font-size:19px;font-weight:800;cursor:pointer}
.primary{color:#fff;background:#8b5cf6;box-shadow:0 5px 12px rgba(139,92,246,.27)}
.primary:disabled{opacity:.6;cursor:wait}
.secondary{border:1px solid #8b5cf6;color:#7c3aed;background:#fff}
.result{display:none;margin-top:18px;padding:22px;border-radius:18px;background:#e5f8d7}
.result.show{display:block}
.success-title{display:flex;align-items:center;justify-content:center;gap:10px;color:#45c70d;font-size:22px;font-weight:800}
.success-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:9px;background:#4fd10e;color:#fff}
.code-row{display:flex;align-items:center;justify-content:center;gap:10px;margin:13px 0}
.code{color:#8b5cf6;font:700 27px ui-monospace,SFMono-Regular,Consolas,monospace;word-break:break-all}
.copy{border:0;background:transparent;color:#8b5cf6;font-size:22px;cursor:pointer}
.waiting{margin:14px 0 2px;color:#777184}
.spinner{display:inline-block;width:25px;height:25px;margin-right:8px;border:5px solid #c7f0a8;border-top-color:#8b5cf6;border-radius:50%;vertical-align:middle;animation:spin .8s linear infinite}
.result-actions{display:flex;justify-content:center;gap:10px;margin-top:18px}
.bot-link{display:inline-block;padding:10px 14px;border:0;border-radius:9px;background:#fff;color:#6d28d9;text-decoration:none;font-family:inherit;font-size:15px;font-weight:700;cursor:pointer}
.error{min-height:24px;margin-top:16px;color:#d84b56}
.regenerate{display:none;margin:22px auto 0}
.regenerate.show{display:block}
@keyframes spin{to{transform:rotate(360deg)}}
@media(max-width:650px){body{display:block;min-height:100dvh;padding:0;background:#fff}.card{width:100%;min-height:100dvh;padding:76px 18px 28px;border:0;border-radius:0;box-shadow:none}.language{top:14px;right:14px;width:170px;padding:9px 12px;font-size:16px}.brand{justify-content:flex-start;margin:0 0 30px}.brand img{width:48px;height:48px}.brand strong{font-size:21px}.welcome{font-size:24px;line-height:1.35}.subtitle{margin-bottom:24px;font-size:16px;line-height:1.5}.tab{padding:12px 4px;font-size:15px}.content{padding-top:22px}.content h2{font-size:21px}.hint{margin-bottom:20px;font-size:15px}.primary,.secondary{width:100%;min-height:48px;padding:12px 16px;font-size:17px}.result{padding:18px 14px;border-radius:14px}.success-title{font-size:18px}.code-row{gap:6px}.code{font-size:20px}.waiting{font-size:14px;line-height:1.5}.result-actions{flex-direction:column}.bot-link{width:100%;min-height:44px;display:flex;align-items:center;justify-content:center}}
@media(max-width:360px){.card{padding-inline:14px}.language{width:150px;font-size:14px}.brand strong{font-size:19px}.welcome{font-size:21px}.subtitle{font-size:15px}.tab{font-size:14px}.code{font-size:18px}}
