:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --accent: #10b981;
    --bg: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg);
    min-height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

.bg-circle {
    position: fixed;
    width: 300px; height: 300px;
    background: linear-gradient(to right, #4f46e5, #ec4899);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    top: 20%; left: 30%;
    z-index: 0;
}

.container { z-index: 1; width: 100%; max-width: 480px; padding: 1rem; }

.card {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.3);
}

h1 { text-align: center; font-size: 1.5rem; color: #1e293b; margin-bottom: 0.25rem; }
h1 span { color: var(--primary); }
.subtitle { text-align: center; font-size: 0.8rem; color: #64748b; margin-bottom: 1.5rem; }

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: #334155; margin-bottom: 0.4rem; }
.form-group input {
    width: 100%; padding: 0.75rem 1rem; border: 2px solid #f1f5f9; border-radius: 0.8rem;
    font-size: 1rem; background: #f8fafc; color: #1e293b; font-family: inherit;
}
.form-group input:focus {
    outline: none; border-color: var(--primary); background: #fff;
    box-shadow: 0 0 0 4px rgba(99,102,241,0.1);
}

.btn-primary {
    width: 100%; padding: 1rem; background: var(--primary); color: #fff;
    border: none; border-radius: 0.8rem; font-weight: 700; font-size: 1rem;
    cursor: pointer; transition: 0.2s;
}
.btn-primary:hover { background: var(--primary-hover); }

.result-box {
    margin-top: 1.5rem; padding: 1rem; text-align: left;
    background: linear-gradient(145deg, #f5f3ff, #ede9fe);
    border-radius: 1rem; border: 1px solid #ddd6fe;
}
.result-label { font-size: 0.85rem; color: #64748b; margin-bottom: 0.75rem; text-align: center; }

.license-item {
    background: #fff; border-radius: 0.75rem; padding: 1rem; margin-bottom: 0.75rem;
    border: 1px solid #e2e8f0;
}
.license-item:last-child { margin-bottom: 0; }
.license-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.35rem; }
.license-head .pid { font-size: 0.75rem; color: #94a3b8; font-family: Consolas, monospace; }
.license-meta { font-size: 0.75rem; color: #64748b; margin-bottom: 0.5rem; }
.license-code {
    font-family: Consolas, monospace; font-size: 1rem; font-weight: 800;
    color: var(--primary); background: #f8fafc; padding: 0.6rem; border-radius: 0.5rem;
    cursor: pointer; word-break: break-all; text-align: center; transition: 0.2s;
}
.license-code:hover { background: #eef2ff; }
.license-code.copied { color: var(--accent); background: #ecfdf5; }

.empty-box {
    margin-top: 1rem; text-align: center; color: #94a3b8; font-size: 0.85rem;
    padding: 1rem; background: #f8fafc; border-radius: 0.75rem;
}

.footer { text-align: center; font-size: 0.7rem; color: rgba(255,255,255,0.4); margin-top: 1.5rem; }
