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

.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; }
}

/* 证书查询结果页 */
.results-page main {
    background: linear-gradient(180deg, #f9fafb 0%, #eef2ff 40%, #f9fafb 100%);
}

.results-hero {
    position: relative;
    overflow: hidden;
    padding: 3rem 0 5.5rem;
}

.results-hero-glow {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    pointer-events: none;
}

.results-hero-glow::before,
.results-hero-glow::after {
    content: '';
    position: absolute;
    border-radius: 9999px;
    filter: blur(80px);
}

.results-hero-glow::before {
    top: 2rem;
    left: 8%;
    width: 18rem;
    height: 18rem;
    background: rgba(11, 95, 255, 0.45);
}

.results-hero-glow::after {
    bottom: 1rem;
    right: 8%;
    width: 22rem;
    height: 22rem;
    background: rgba(0, 184, 169, 0.28);
}

.results-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    margin-bottom: 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.2s ease;
}

.results-back:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

.results-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: -3.25rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 20;
}

.results-summary-item {
    padding: 1.25rem 1.5rem;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 12px 40px rgba(10, 22, 40, 0.08);
    backdrop-filter: blur(8px);
}

.results-summary-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.results-summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0A1628;
    line-height: 1.2;
}

.results-summary-value.is-text {
    font-size: 1rem;
    font-weight: 600;
    word-break: break-all;
}

.results-panel {
    border-radius: 1.5rem;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(11, 95, 255, 0.08);
    box-shadow: 0 20px 60px rgba(10, 22, 40, 0.08);
}

.results-panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(90deg, #0A1628 0%, #132238 55%, #0B5FFF 160%);
    color: #fff;
}

.results-panel-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    font-weight: 700;
}

.results-panel-title i {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
}

.results-panel-meta {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.72);
}

.results-cert-list {
    padding: 1.25rem;
    display: grid;
    gap: 1rem;
}

.results-cert-card {
    position: relative;
    border-radius: 1.25rem;
    border: 1px solid #e5e7eb;
    background: linear-gradient(180deg, #fff 0%, #fafbff 100%);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    animation: fadeIn 0.55s ease-out forwards;
}

.results-cert-card:hover {
    transform: translateY(-2px);
    border-color: rgba(11, 95, 255, 0.18);
    box-shadow: 0 16px 40px rgba(11, 95, 255, 0.1);
}

.results-cert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #0B5FFF 0%, #00B8A9 100%);
}

.results-cert-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.25rem 1rem 1.5rem;
    border-bottom: 1px dashed #e5e7eb;
}

.results-cert-seal {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #0B5FFF;
    background: linear-gradient(135deg, #e8f1ff 0%, #ecfdf5 100%);
    box-shadow: inset 0 0 0 1px rgba(11, 95, 255, 0.08);
    flex-shrink: 0;
}

.results-cert-title-wrap {
    flex: 1;
    min-width: 0;
}

.results-cert-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0A1628;
    line-height: 1.4;
}

.results-cert-subtitle {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.results-cert-number {
    margin-top: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.8125rem;
    color: #0B5FFF;
    font-weight: 600;
}

.results-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
    flex-shrink: 0;
}

.results-badge--pass {
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}

.results-badge--fail {
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.results-badge--default {
    color: #4b5563;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.results-cert-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.5rem;
    padding: 1.25rem 1.25rem 1.25rem 1.5rem;
}

@media (min-width: 768px) {
    .results-cert-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.results-field-label {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 0.375rem;
}

.results-field-value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #0A1628;
    word-break: break-all;
}

.results-field-value.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 500;
}

.results-cert-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem 1rem 1.5rem;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    font-size: 0.75rem;
    color: #94a3b8;
}

.results-trust {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: #0B5FFF;
    font-weight: 600;
}

.results-empty {
    padding: 4rem 2rem;
    text-align: center;
}

.results-empty-icon {
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1.25rem;
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.results-empty-icon.is-error {
    color: #ef4444;
    background: linear-gradient(135deg, #fef2f2 0%, #fff1f2 100%);
}

.results-empty-icon.is-info {
    color: #0B5FFF;
    background: linear-gradient(135deg, #e8f1ff 0%, #eef2ff 100%);
}

.results-limit-tip {
    margin-top: 1.25rem;
    padding: 0.875rem 1rem;
    border-radius: 0.875rem;
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
    background: rgba(255, 255, 255, 0.8);
    border: 1px dashed #d1d5db;
}

@media (max-width: 767px) {
    .results-hero {
        padding: 2rem 0 4.5rem;
    }

    .results-summary {
        grid-template-columns: 1fr;
        margin-top: -2.5rem;
    }

    .results-summary-value {
        font-size: 1.25rem;
    }

    .results-cert-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* 会员登录 / 注册认证页 */
.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;
}

