* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: #f0f2f5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
/* 表单卡片 */
.card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 420px;
    overflow: hidden;
    animation: cardIn 0.4s ease;
}
@keyframes cardIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.card-header {
    background: linear-gradient(135deg, #4f6ef7 0%, #6a5acd 100%);
    padding: 28px 30px 24px;
    text-align: center;
    color: white;
}
.card-header .logo {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    margin-bottom: 12px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.card-header .icon { font-size: 48px; margin-bottom: 12px; }
.card-header h1 { font-size: 22px; font-weight: 600; margin-bottom: 6px; }
.card-header p { font-size: 13px; opacity: 0.85; }
.card-body { padding: 30px; }
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; font-size: 13px; font-weight: 500; color: #555; margin-bottom: 8px;
}
.input-wrap { position: relative; }
.input-wrap .input-icon {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    font-size: 16px; color: #999;
}
.form-group input {
    width: 100%; padding: 12px 14px 12px 42px;
    border: 1.5px solid #e0e0e0; border-radius: 10px;
    font-size: 14px; color: #333; transition: all 0.2s; background: #fafbfc;
}
.form-group input:focus {
    outline: none; border-color: #4f6ef7; background: white;
    box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.1);
}
.form-group input::placeholder { color: #bbb; }
.submit-btn {
    width: 100%; padding: 14px;
    background: linear-gradient(135deg, #4f6ef7 0%, #6a5acd 100%);
    color: white; border: none; border-radius: 10px;
    font-size: 15px; font-weight: 500; cursor: pointer;
    transition: all 0.2s; margin-top: 8px;
}
.submit-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(79, 110, 247, 0.4); }
.submit-btn:active { transform: translateY(0); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.card-footer {
    text-align: center; padding: 0 30px 24px; font-size: 12px; color: #aaa;
}

/* 结果区域 */
.result-panel {
    display: none;
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #f0f2f5; z-index: 100;
    flex-direction: column;
}
.result-panel.active { display: flex; }
.result-footer {
    background: white; padding: 14px 24px;
    display: flex; justify-content: center; gap: 16px;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}
.refresh-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none; color: white;
    padding: 14px 40px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}
.refresh-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.refresh-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.close-btn {
    background: linear-gradient(135deg, #4f6ef7 0%, #6a5acd 100%);
    border: none; color: white;
    padding: 14px 40px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}
.close-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.result-frame {
    flex: 1; width: 100%; border: none; background: #f0f2f5;
}
.loading {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255,255,255,0.9); z-index: 200;
    justify-content: center; align-items: center; flex-direction: column;
}
.loading.active { display: flex; }
.spinner {
    width: 40px; height: 40px; border: 3px solid #e0e0e0;
    border-top-color: #4f6ef7; border-radius: 50%;
    animation: spin 0.8s linear infinite; margin-bottom: 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading p { color: #666; font-size: 14px; }
