/* 香港身份证验证工具专用样式 */

/* ==================== 按钮组样式 ==================== */
.button-group {
    display: flex;
    gap: 12px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.button-group .btn {
    flex: 1;
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
}

/* ==================== 示例按钮样式 ==================== */
.example-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.btn-example {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.btn-example:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

.btn-example:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.4);
}

/* ==================== 验证结果样式 ==================== */
.result-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.result-title {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-title i {
    color: #667eea;
    font-size: 20px;
}

.result-content {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* 成功结果样式 */
.result-success {
    border-left: 4px solid #10b981;
}

.result-success .result-status {
    color: #10b981;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.result-success .result-status i {
    font-size: 24px;
}

/* 失败结果样式 */
.result-error {
    border-left: 4px solid #ef4444;
}

.result-error .result-status {
    color: #ef4444;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.result-error .result-status i {
    font-size: 24px;
}

/* 结果详情样式 */
.result-details {
    display: grid;
    gap: 12px;
    margin-top: 15px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.result-item:hover {
    background: #e9ecef;
}

.result-label {
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.result-value {
    font-family: 'Courier New', monospace;
    color: #667eea;
    font-size: 14px;
    font-weight: 600;
}

.result-message {
    padding: 12px;
    background: #f0f4ff;
    border-radius: 6px;
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    margin-top: 10px;
}

/* ==================== 历史记录样式 ==================== */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.history-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.history-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

.history-item-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.history-item-id {
    font-weight: 600;
    font-size: 16px;
    font-family: 'Courier New', monospace;
}

.history-item-status {
    font-size: 13px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 5px;
}

.history-item-status i {
    font-size: 14px;
}

.history-item-time {
    font-size: 12px;
    opacity: 0.8;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.empty-state i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 15px;
    display: block;
}

.empty-state p {
    margin: 0;
    font-size: 14px;
    font-style: italic;
}

/* ==================== 响应式设计 ==================== */

/* 平板设备 */
@media (max-width: 768px) {
    .button-group {
        flex-direction: column;
    }

    .button-group .btn {
        width: 100%;
    }

    .example-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .result-section {
        padding: 20px;
    }

    .result-title {
        font-size: 16px;
    }

    .result-content {
        padding: 15px;
    }

    .history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 15px;
    }

    .history-item-time {
        align-self: flex-end;
    }
}

/* 手机设备 */
@media (max-width: 480px) {
    .example-buttons {
        grid-template-columns: 1fr;
    }

    .btn-example {
        padding: 10px 16px;
        font-size: 13px;
    }

    .result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .result-value {
        margin-top: 5px;
    }

    .empty-state {
        padding: 30px 15px;
    }

    .empty-state i {
        font-size: 36px;
    }
}
