body {
    text-align: center;
}

code {
    display: inline-block;
    padding: 2px;
    font-family: Consolas, monospace;
    font-size: 14px;
    background-color: #f2f2f2;
    color: #333333;
    border-radius: 4px;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 2;
}

hr {
    margin-left: 0;
    width: 10%;
    color: rgba(255, 160, 0, 1);
    box-shadow: 0 0 10px rgba(255, 160, 0, 0.8);
}

.no-select {
    user-select: none;
}

.filebox {
    min-height: 70vh;
    margin-top: 20px;
}

.footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    backdrop-filter: blur(10px);
    background-image: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5));
    color: #333;
    text-align: center;
    padding: 20px;
    background-size: cover;
    background-repeat: no-repeat;
}

.footer a {
    text-decoration: none;
    color: inherit;
}

.footer a:hover {
    font-weight: bold;
}

.tooltip-x {
    position: fixed;
    top: 80px;
    right: 20px;
    backdrop-filter: blur(10px);
    background-image: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5));
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
    opacity: 1;
    animation: fadeIn 3s;
}

/* 定义动画，从透明度0到透明度1，持续时间2秒 */
@keyframes fadeIn {
  0% {
    opacity: 1;
  }
  33% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

body.login-page {
    min-height: 100vh;
    margin: 0;
    color: #e5eefb;
    background:
        radial-gradient(circle at 14% 12%, rgba(20, 184, 166, 0.32), transparent 28rem),
        radial-gradient(circle at 86% 24%, rgba(251, 191, 36, 0.2), transparent 24rem),
        linear-gradient(135deg, #08111f 0%, #0d1b2f 48%, #061f1e 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    text-align: left;
}

body.login-page *,
body.login-page *::before,
body.login-page *::after {
    box-sizing: border-box;
}

.login-shell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(560px, 100%);
    min-height: 100vh;
    margin: 0 auto;
    padding: 2rem;
}

.login-shell::before {
    position: absolute;
    inset: 12% auto auto -10%;
    width: 24rem;
    height: 24rem;
    pointer-events: none;
    content: "";
    background: radial-gradient(circle, rgba(94, 234, 212, 0.12), transparent 68%);
    filter: blur(10px);
}

.login-panel {
    position: relative;
    z-index: 1;
}

.login-panel {
    display: grid;
    width: 100%;
    gap: 1.2rem;
    padding: 1.45rem;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(6, 78, 59, 0.78));
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 8px;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
}

.login-panel::after {
    position: absolute;
    inset: 0;
    pointer-events: none;
    content: "";
    background: linear-gradient(180deg, rgba(8, 17, 31, 0.18), rgba(8, 17, 31, 0.74));
}

.login-copy,
.login-form {
    position: relative;
    z-index: 1;
}

.login-copy {
    text-align: center;
}

.login-logo {
    width: 152px;
    height: auto;
    margin: 0 auto 0.85rem;
    filter: drop-shadow(0 16px 36px rgba(45, 212, 191, 0.28));
}

.login-copy h1 {
    margin: 0 0 0.45rem;
    color: #ffffff;
    font-size: clamp(2.55rem, 8vw, 4rem);
    font-weight: 900;
    line-height: 1;
}

.login-copy p {
    max-width: none;
    margin: 0 auto;
    color: #b7c7db;
    font-size: 1rem;
    line-height: 1.55;
}

.login-form {
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(2, 6, 23, 0.58);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
}

.login-form label {
    color: #d9fff7;
    font-size: 0.92rem;
    font-weight: 850;
}

.login-input-wrap {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    min-height: 52px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 8px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.login-input-wrap:focus-within {
    border-color: rgba(94, 234, 212, 0.68);
    box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.12);
}

.login-input-wrap span {
    display: grid;
    place-items: center;
    min-width: 54px;
    height: 100%;
    color: #042f2e;
    background: linear-gradient(135deg, #ccfbf1, #5eead4);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
}

.login-input-wrap input {
    width: 100%;
    min-width: 0;
    padding: 0 0.95rem;
    color: #f8fafc;
    background: transparent;
    border: 0;
    outline: 0;
    font: inherit;
}

.login-input-wrap input::placeholder {
    color: #7890a9;
}

.login-form button {
    min-height: 50px;
    color: #042f2e;
    cursor: pointer;
    background: linear-gradient(90deg, #ccfbf1, #5eead4);
    border: 0;
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(45, 212, 191, 0.24);
    font: inherit;
    font-size: 0.96rem;
    font-weight: 850;
    transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.login-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 52px rgba(45, 212, 191, 0.3);
}

.login-form button:disabled {
    cursor: not-allowed;
    filter: saturate(0.7);
    opacity: 0.72;
    transform: none;
}

.login-hint {
    color: #94a3b8;
    font-size: 0.86rem;
    line-height: 1.65;
}

.login-alert {
    padding: 0.75rem 0.85rem;
    color: #fecaca;
    background: rgba(127, 29, 29, 0.34);
    border: 1px solid rgba(248, 113, 113, 0.34);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 760;
}

.login-alert[hidden] {
    display: none;
}

@media (max-width: 920px) {
    .login-shell {
        padding: 2rem 1.25rem;
    }
}

@media (max-width: 640px) {
    .login-shell {
        padding: 1rem;
    }

    .login-panel {
        padding: 1rem;
    }

    .login-logo {
        width: 132px;
        height: auto;
        margin-bottom: 0.8rem;
    }

    .login-copy h1 {
        font-size: clamp(2.7rem, 14vw, 3.65rem);
        overflow-wrap: anywhere;
    }

    .login-copy p {
        font-size: 0.96rem;
        line-height: 1.72;
    }
}
