/* H5 移动端专用样式 */

.h5-app {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    min-height: 100dvh;
    background: #f3f4f6;
}

.h5-safe-top {
    padding-top: env(safe-area-inset-top, 0);
}

.h5-safe-bottom {
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.h5-header {
    background: linear-gradient(135deg, #0A1628 0%, #132238 55%, #0B5FFF 120%);
}

.h5-tabbar {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 -4px 24px rgba(10, 22, 40, 0.06);
}

.h5-tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 0 4px;
    color: #9ca3af;
    font-size: 11px;
    transition: color 0.2s;
}

.h5-tab-item i {
    font-size: 20px;
    line-height: 1;
}

.h5-tab-item.active {
    color: #0B5FFF;
}

.h5-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(11, 95, 255, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

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

.h5-entry-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 12px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}

.h5-entry-item:active {
    transform: scale(0.98);
}

.h5-entry-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 8px;
}

.h5-list-card {
    padding: 14px 16px;
    border-bottom: 1px solid #f3f4f6;
}

.h5-list-card:last-child {
    border-bottom: none;
}

.h5-status-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
}

.h5-sticky-btn {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(64px + env(safe-area-inset-bottom, 0) + 12px);
    width: calc(100% - 32px);
    max-width: 448px;
    z-index: 40;
}

.h5-step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    transition: all 0.3s;
}

.h5-step-dot.active {
    width: 24px;
    border-radius: 4px;
    background: #0B5FFF;
}

.h5-form-step {
    display: none;
}

.h5-form-step.active {
    display: block;
    animation: h5FadeIn 0.3s ease;
}

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

.h5-search-bar {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
}

.h5-results-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.h5-results-summary-item {
    padding: 10px 8px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(11, 95, 255, 0.08);
    text-align: center;
}

.h5-results-summary-item span {
    display: block;
    font-size: 10px;
    color: #9ca3af;
    margin-bottom: 4px;
}

.h5-results-summary-item strong {
    display: block;
    font-size: 13px;
    color: #0A1628;
    word-break: break-all;
}

.h5-cert-card {
    position: relative;
    padding: 14px 14px 14px 18px;
    border-radius: 16px;
    background: linear-gradient(180deg, #fff 0%, #fafbff 100%);
    border: 1px solid rgba(11, 95, 255, 0.08);
    margin-bottom: 12px;
    overflow: hidden;
}

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

.h5-cert-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #e5e7eb;
}

.h5-cert-seal {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0B5FFF;
    background: linear-gradient(135deg, #e8f1ff 0%, #ecfdf5 100%);
    flex-shrink: 0;
}

.h5-cert-meta {
    flex: 1;
    min-width: 0;
}

.h5-cert-name {
    font-size: 15px;
    font-weight: 700;
    color: #0A1628;
}

.h5-cert-title {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

.h5-cert-number {
    margin-top: 8px;
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-family: ui-monospace, monospace;
    font-size: 11px;
    color: #0B5FFF;
    word-break: break-all;
}

.h5-cert-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.h5-cert-field label {
    display: block;
    font-size: 10px;
    color: #9ca3af;
    margin-bottom: 2px;
}

.h5-cert-field p {
    font-size: 12px;
    font-weight: 600;
    color: #0A1628;
    word-break: break-all;
}

.h5-cert-field p.mono {
    font-family: ui-monospace, monospace;
    font-weight: 500;
}

.h5-cert-foot {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #94a3b8;
}

.h5-cert-trust {
    color: #0B5FFF;
    font-weight: 600;
}
