* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background: linear-gradient(135deg, #eef2ff, #f8fafc);
    color: #111827;
}

a {
    text-decoration: none;
}

.auth-box {
    width: 420px;
    margin: 90px auto;
    background: #fff;
    padding: 36px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
}

.auth-box h1,
.form-card h1 {
    margin: 0 0 8px;
    font-size: 30px;
}

.auth-box p,
.form-card p {
    margin: 0 0 24px;
    color: #6b7280;
}

input {
    width: 100%;
    height: 46px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0 14px;
    font-size: 15px;
    outline: none;
    margin-bottom: 14px;
}

input:focus {
    border-color: #2563eb;
}

button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    border: none;
    border-radius: 12px;
    background: #2563eb;
    color: #fff;
    padding: 0 18px;
    cursor: pointer;
    font-size: 15px;
}

button:hover,
.btn:hover {
    background: #1d4ed8;
}

.btn.ghost {
    background: #e5e7eb;
    color: #111827;
}

.btn.ghost:hover {
    background: #d1d5db;
}

.auth-box button,
.form-card button {
    width: 100%;
    height: 48px;
    margin-top: 6px;
}

.auth-link {
    text-align: center;
    margin-top: 18px;
    color: #6b7280;
}

.auth-link a,
.back,
.open-link {
    color: #2563eb;
}

.error {
    background: #fee2e2;
    color: #b91c1c;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.page {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.page.small {
    max-width: 560px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.topbar h1 {
    margin: 0;
    font-size: 34px;
}

.topbar p {
    color: #6b7280;
    margin: 6px 0 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 22px;
}

.admin-card,
.form-card,
.empty {
    background: #fff;
    border-radius: 24px;
    padding: 26px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.1);
}

.admin-card h2 {
    margin: 0 0 10px;
}

.muted {
    color: #6b7280;
    margin-bottom: 18px;
}

.share-line {
    display: flex;
    gap: 10px;
}

.share-line input {
    margin: 0;
}

.share-line button {
    white-space: nowrap;
}

.open-link {
    display: inline-block;
    margin-top: 16px;
}

.form-card label {
    display: block;
    font-weight: 600;
    margin: 12px 0 8px;
}

.back {
    display: block;
    text-align: center;
    margin-top: 18px;
}

.share-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(circle at top left, #dbeafe, transparent 35%),
        radial-gradient(circle at bottom right, #dcfce7, transparent 35%),
        #f8fafc;
}

.share-card {
    width: 440px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border-radius: 28px;
    padding: 32px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.16);
}

.badge {
    display: inline-block;
    background: #14b8a6;
    color: #fff;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 14px;
    margin-bottom: 14px;
}

.share-card h1 {
    margin: 0 0 24px;
    font-size: 30px;
}

.info-box {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 14px;
}

.label {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 8px;
}

.value {
    font-size: 17px;
    word-break: break-all;
    margin-bottom: 12px;
}

.code {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #2563eb;
}

.info-box button {
    width: 100%;
    background: #111827;
}

.info-box button:hover {
    background: #000;
}

.tips {
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    margin-top: 16px;
}

@media (max-width: 600px) {
    .auth-box,
    .share-card {
        width: 100%;
    }

    .topbar {
        display: block;
    }

    .topbar .btn {
        margin-top: 14px;
    }

    .share-line {
        display: block;
    }

    .share-line button {
        width: 100%;
        margin-top: 10px;
    }
}
.mini-share-body {
    margin: 0;
    padding: 0;
    background: transparent;
    min-height: auto;
    display: block;
}

.mini-card {
    width: 290px;
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 8px 28px rgba(0,0,0,.12);
    font-family: Arial, "Microsoft YaHei", sans-serif;
}

.mini-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 14px;
    color: #111827;
}

.mini-title span {
    font-size: 13px;
    background: #1677ff;
    color: #fff;
    padding: 3px 7px;
    border-radius: 6px;
    margin-left: 5px;
}

.mini-line {
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #f1f1f1;
    padding: 9px 0;
}

.mini-line:last-of-type {
    border-bottom: none;
}

.mini-line div {
    flex: 1;
    min-width: 0;
}

.mini-line label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 3px;
}

.mini-line p {
    margin: 0;
    font-size: 14px;
    color: #111827;
    word-break: break-all;
}

.mini-code {
    color: #2563eb !important;
    font-size: 22px !important;
    font-weight: 800;
    letter-spacing: 2px;
}

.mini-line button {
    width: auto;
    height: 32px;
    padding: 0 10px;
    border-radius: 8px;
    background: #111827;
    color: #fff;
    font-size: 13px;
}

.mini-line button.eye {
    background: #f3f4f6;
    color: #111827;
    padding: 0 8px;
}

.mini-tip {
    text-align: center;
    color: #888;
    font-size: 12px;
    margin-top: 10px;
}

.toast {
    position: fixed;
    left: 50%;
    top: 40%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,.75);
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 9999;
}