* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

body {
    min-height: 100vh;
    background: linear-gradient(145deg, #f6f9fc 0%, #e6f0f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.portal-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 20, 30, 0.25),
                inset 0 0 0 1px rgba(255, 255, 255, 0.6);
    width: 100%;
    max-width: 780px;
    padding: 2.5rem 2rem;
    transition: all 0.2s ease;
}

/* 密码验证区域 */
.auth-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.lock-icon {
    font-size: 3.2rem;
    margin-bottom: 0.75rem;
    filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.05));
}

.auth-section h1 {
    font-size: 1.9rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #1a3b4f;
    margin-bottom: 0.5rem;
}

.auth-section .subhead {
    font-size: 0.95rem;
    color: #4d6272;
    margin-bottom: 2rem;
    font-weight: 400;
    border-bottom: 1px dashed #b7cfdd;
    padding-bottom: 0.8rem;
    width: 100%;
    max-width: 280px;
}

.password-form {
    width: 100%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    width: 100%;
    padding: 1rem 1.2rem;
    font-size: 1rem;
    background: #ffffffd9;
    border: 1.5px solid #cbdae5;
    border-radius: 2rem;
    outline: none;
    transition: 0.2s;
    color: #153243;
    font-weight: 500;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 10px rgba(0, 30, 50, 0.02);
}

.password-wrapper input:focus {
    border-color: #3d7ea6;
    background: white;
    box-shadow: 0 6px 16px rgba(61, 126, 166, 0.12);
}

.password-wrapper input:disabled {
    background: #eef4f8;
    cursor: not-allowed;
    opacity: 0.7;
}

.password-wrapper input::placeholder {
    color: #a1b7c7;
    font-weight: 400;
}

.password-form button {
    background: #1e4c66;
    border: none;
    border-radius: 2rem;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 8px 18px -6px rgba(23, 70, 98, 0.3);
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.password-form button:hover:not(:disabled) {
    background: #0f3a50;
    transform: scale(1.01);
    box-shadow: 0 12px 22px -8px #0d2f41;
}

.password-form button:active:not(:disabled) {
    transform: scale(0.98);
    box-shadow: 0 4px 12px -4px #0a2535;
}

.password-form button:disabled {
    background: #7f9aab;
    cursor: not-allowed;
    opacity: 0.7;
}

.error-message {
    color: #c5453b;
    font-size: 0.85rem;
    min-height: 1.2rem;
    margin-top: -0.2rem;
    font-weight: 500;
    text-align: center;
}

/* 内容区域 */
.content-section {
    display: flex;
    flex-direction: column;
    animation: fadeSlideUp 0.45s cubic-bezier(0.2, 0.9, 0.3, 1);
}

@keyframes fadeSlideUp {
    0% { opacity: 0; transform: translateY(12px); }
    100% { opacity: 1; transform: translateY(0); }
}

.content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.8rem;
    border-bottom: 1px solid #c9dde9;
    padding-bottom: 1rem;
}

.content-header h2 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #1d3f54;
    letter-spacing: -0.3px;
}

.badge {
    background: #d9e8f2;
    border-radius: 100px;
    padding: 0.35rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #1e4c66;
    border: 1px solid #b8d2e3;
}

.logout-link {
    text-decoration: none;
    font-size: 1.2rem;
    opacity: 0.6;
    transition: 0.2s;
    padding: 0.3rem;
}

.logout-link:hover {
    opacity: 1;
    transform: scale(1.1);
}

.custom-content {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.content-block {
    background: #ffffffc7;
    backdrop-filter: blur(4px);
    border-radius: 1.8rem;
    padding: 1.6rem 1.8rem;
    box-shadow: 0 6px 20px -6px rgba(20, 50, 70, 0.08);
    border: 1px solid #e5f0f7;
    transition: 0.2s;
}

.content-block:hover {
    border-color: #bed7e7;
    background: #ffffffea;
}

.content-block h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #154357;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.content-block p {
    color: #2d4f62;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.content-block p:last-child {
    margin-bottom: 0;
}

.content-block code {
    background: #e5eff6;
    padding: 0.2rem 0.4rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.tag {
    background: #e3eff8;
    border-radius: 30px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #215974;
    border: 1px solid #c2daea;
}

.custom-link {
    color: #1e6b8f;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1.5px solid #b2d1e5;
    transition: 0.15s;
    padding-bottom: 2px;
}

.custom-link:hover {
    color: #0a3b52;
    border-bottom-color: #1e6b8f;
}

.footer-note {
    text-align: center;
    font-size: 0.75rem;
    color: #7895a8;
    margin-top: 2rem;
    letter-spacing: 0.2px;
}

/* 响应式 */
@media (max-width: 560px) {
    .portal-card {
        padding: 1.8rem 1.2rem;
        border-radius: 1.8rem;
    }
    .auth-section h1 { font-size: 1.6rem; }
    .content-header h2 { font-size: 1.4rem; }
    .content-block { padding: 1.2rem; }
    .content-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}
