/* 湖南省集中空调卫生公共信息平台 - 前台主题 */

.hero-pattern {
    background-color: #0A1628;
    background-image:
        radial-gradient(at 20% 30%, rgba(11, 95, 255, 0.35) 0, transparent 50%),
        radial-gradient(at 80% 20%, rgba(0, 184, 169, 0.2) 0, transparent 40%),
        radial-gradient(at 60% 80%, rgba(11, 95, 255, 0.15) 0, transparent 45%);
}

.member-sidebar {
    background: linear-gradient(180deg, #0A1628 0%, #132238 100%);
}

.member-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    color: rgba(255, 255, 255, 0.65);
    transition: all 0.2s ease;
}

.member-nav-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.member-nav-item.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(11, 95, 255, 0.4) 0%, rgba(11, 95, 255, 0.1) 100%);
    border-left: 3px solid #0B5FFF;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .hero-title { font-size: 1.75rem !important; }
}

/* 会员登录 / 注册认证页 */
.auth-brand-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 85%, rgba(0, 184, 169, 0.18), transparent 35%),
        radial-gradient(circle at 85% 15%, rgba(11, 95, 255, 0.22), transparent 40%);
    pointer-events: none;
}

.auth-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.2s ease;
    min-width: 0;
}

.auth-brand-link:hover {
    color: #fff;
}

.auth-brand-logo,
.auth-mobile-logo {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    object-fit: cover;
    flex-shrink: 0;
}

.auth-mobile-logo {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.75rem;
    box-shadow: 0 4px 24px rgba(11, 95, 255, 0.08);
}

.auth-brand-logo-fallback,
.auth-mobile-logo-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.auth-mobile-logo-fallback {
    background: #0B5FFF;
}

.auth-brand-title {
    font-weight: 700;
    max-width: 15rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-alert {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.auth-alert-icon {
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.auth-alert-list {
    list-style: disc;
    padding-left: 1rem;
}

.auth-alert-list li + li {
    margin-top: 0.25rem;
}

.auth-alert-error {
    background: #fef2f2;
    border: 1px solid #fee2e2;
    color: #dc2626;
}

.auth-alert-warning {
    background: #fffbeb;
    border: 1px solid #fef3c7;
    color: #92400e;
}

.auth-alert-success {
    background: #ecfdf5;
    border: 1px solid #d1fae5;
    color: #047857;
}

.auth-alert-link {
    color: #0B5FFF;
    font-weight: 500;
}

.auth-alert-link:hover {
    text-decoration: underline;
}

.login-tabs {
    display: flex;
    gap: 0.25rem;
    padding: 0.25rem;
    margin-bottom: 1.5rem;
    border-radius: 0.875rem;
    background: #f3f4f6;
}

.login-tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.625rem 0.75rem;
    border-radius: 0.625rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.2s ease;
}

.login-tab:hover {
    color: #374151;
}

.login-tab.is-active {
    background: #fff;
    color: #0B5FFF;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.login-panel {
    display: none;
}

.login-panel.is-active {
    display: block;
    animation: loginPanelIn 0.25s ease-out;
}

@keyframes loginPanelIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-field + .auth-field {
    margin-top: 1.25rem;
}

.auth-label {
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

.auth-input {
    padding-left: 2.75rem;
}

.auth-toggle-password {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    color: #9ca3af;
    transition: color 0.2s ease, background 0.2s ease;
}

.auth-toggle-password:hover {
    color: #0B5FFF;
    background: rgba(11, 95, 255, 0.08);
}

.auth-sms-row {
    display: flex;
    gap: 0.5rem;
}

.auth-sms-row .auth-input-wrap {
    flex: 1;
}

.btn-sms {
    flex-shrink: 0;
    min-width: 6.5rem;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    white-space: nowrap;
}

.btn-sms.is-disabled,
.btn-sms:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.auth-sms-tip {
    margin-top: 0.375rem;
    font-size: 0.75rem;
    line-height: 1.4;
}

.auth-sms-tip--muted { color: #6b7280; }
.auth-sms-tip--success { color: #059669; }
.auth-sms-tip--error { color: #dc2626; }

.auth-submit {
    width: 100%;
    margin-top: 1.25rem;
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
    font-size: 1rem;
}

.auth-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f3f4f6;
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
}

.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: #9ca3af;
    transition: color 0.2s ease;
}

.auth-back-link:hover {
    color: #0B5FFF;
}

/* 会员中心弹窗 */
.member-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.member-modal.is-open {
    display: flex;
}

body.member-modal-open {
    overflow: hidden;
}

.member-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 22, 40, 0.55);
    backdrop-filter: blur(4px);
}

.member-modal-panel {
    position: relative;
    width: 100%;
    max-width: 28rem;
    padding: 2rem 1.75rem 1.75rem;
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 24px 60px rgba(10, 22, 40, 0.18);
    animation: memberModalIn 0.25s ease-out;
}

@keyframes memberModalIn {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.member-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    color: #9ca3af;
    transition: color 0.2s ease, background 0.2s ease;
}

.member-modal-close:hover {
    color: #374151;
    background: #f3f4f6;
}

.member-modal-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #d97706;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.member-modal-title {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0A1628;
    margin-bottom: 0.75rem;
}

.member-modal-message {
    text-align: center;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #4b5563;
}

.member-modal-note {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background: #fffbeb;
    border: 1px solid #fef3c7;
    text-align: center;
    font-size: 0.875rem;
    color: #92400e;
}

.member-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.member-modal-btn-primary {
    width: 100%;
    justify-content: center;
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
}

.member-modal-btn-secondary {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    color: #6b7280;
    transition: color 0.2s ease, background 0.2s ease;
}

.member-modal-btn-secondary:hover {
    color: #374151;
    background: #f9fafb;
}

