* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    color: #1a2433;
    background:
        radial-gradient(circle at top left, rgba(19, 154, 139, 0.20), transparent 28%),
        radial-gradient(circle at top right, rgba(247, 180, 43, 0.18), transparent 22%),
        linear-gradient(180deg, #f6fafb 0%, #eef3f7 100%);
    min-height: 100vh;
}

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

.card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(22, 50, 82, 0.08);
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 20px 50px rgba(27, 42, 74, 0.08);
    backdrop-filter: blur(6px);
}

.hero-card {
    margin-bottom: 18px;
}

.hero-head,
.section-head,
.button-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.grid-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.single-column {
    display: grid;
    grid-template-columns: minmax(0, 560px);
    justify-content: center;
    margin-bottom: 18px;
}

.admin-login-layout {
    grid-template-columns: minmax(320px, 560px);
}

.login-card {
    min-height: 320px;
}

.mobile-shell {
    max-width: 720px;
}

.mobile-card {
    min-height: 320px;
}

.eyebrow {
    margin: 0 0 6px;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #139a8b;
    font-weight: 700;
}

h1, h2 {
    margin: 0 0 12px;
}

.muted {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.field span {
    font-size: 14px;
    color: #4a6078;
}

input {
    width: 100%;
    border: 1px solid #d6e0ea;
    background: #fdfefe;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 15px;
    outline: none;
}

input:focus {
    border-color: #139a8b;
    box-shadow: 0 0 0 4px rgba(19, 154, 139, 0.12);
}

button,
.ghost-link {
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

button:hover,
.ghost-link:hover {
    transform: translateY(-1px);
}

button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.primary-btn {
    background: linear-gradient(135deg, #139a8b, #0f766e);
    color: #fff;
    box-shadow: 0 14px 28px rgba(15, 118, 110, 0.25);
}

.secondary-btn,
.ghost-link {
    background: #edf5f4;
    color: #0f5d57;
    text-decoration: none;
}

.status-text {
    min-height: 22px;
    color: #334155;
    margin: 10px 0 0;
}

.full-btn {
    width: 100%;
}

.info-panel {
    margin-top: 14px;
    padding: 14px;
    border-radius: 14px;
    background: #f5f9fc;
    color: #334155;
    line-height: 1.7;
}

.hidden {
    display: none;
}

.log-list {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 480px;
    overflow: auto;
}

.log-item {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 14px;
    background: #fcfefd;
}

.log-item .meta {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 6px;
}

.mini-summary {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f5f9fc;
    color: #475569;
    line-height: 1.7;
}

.translation-list {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 60vh;
    overflow: auto;
}

.translation-item {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 14px;
    background: #fcfefd;
    line-height: 1.7;
}

.translation-item .meta {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 6px;
}

.translation-item strong {
    color: #0f766e;
}

.system-item {
    background: #f4fbfa;
}

.error-item {
    background: #fff5f5;
    border-color: #fecaca;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.stat-box {
    border-radius: 16px;
    padding: 16px;
    background: #f8fbfd;
    border: 1px solid #e2e8f0;
}

.stat-box strong {
    display: block;
    font-size: 26px;
    margin-top: 6px;
}

.table-wrap {
    overflow: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th,
td {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
}

.status-active {
    background: #dcfce7;
    color: #166534;
}

.status-unused {
    background: #e0f2fe;
    color: #075985;
}

.status-expired {
    background: #fee2e2;
    color: #991b1b;
}

.status-disabled {
    background: #e5e7eb;
    color: #374151;
}

@media (max-width: 860px) {
    .grid-two {
        grid-template-columns: 1fr;
    }

    .single-column {
        grid-template-columns: 1fr;
    }

    .hero-head,
    .section-head,
    .button-row {
        flex-direction: column;
        align-items: stretch;
    }

    .mobile-head,
    .mobile-actions {
        flex-direction: column;
        align-items: stretch;
    }
}
