/* 防伪查询页面特定样式 */
.query-header {
    text-align: center;
    padding: 40px 0;
    background: linear-gradient(135deg, #4A90E2 0%, #5BA0F2 100%);
    color: #fff;
    margin-bottom: 30px;
}
.query-header h1 {
    font-size: 36px;
    margin: 0 0 10px 0;
    font-weight: bold;
}
.query-header p {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
}
/* query-content 使用框架container类，宽度与其他页面保持一致，无需额外样式 */
.query-form-box {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}
.input-group-custom {
    display: flex;
    margin-bottom: 20px;
}
.input-group-custom input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}
.input-group-custom input:focus {
    border-color: #4A90E2;
}
.input-group-custom button {
    padding: 15px 40px;
    background: #4A90E2;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}
.input-group-custom button:hover {
    background: #357ABD;
}
.query-tips {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}
.query-tips h3 {
    font-size: 16px;
    color: #333;
    margin: 0 0 10px 0;
}
.query-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.query-tips li {
    padding: 5px 0;
    color: #666;
    font-size: 14px;
    padding-left: 20px;
    position: relative;
}
.query-tips li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #4A90E2;
    font-weight: bold;
}
.result-box {
    display: none;
    padding: 25px;
    margin-top: 20px;
    border-radius: 4px;
}
.result-box.success {
    display: block;
    background: #f0fdf4;
    border: 2px solid #86efac;
}
.result-box.error {
    display: block;
    background: #fef2f2;
    border: 2px solid #fca5a5;
}
.result-box.invalid {
    display: block;
    background: #f5f5f5;
    border: 2px solid #d9d9d9;
}
/* PC端左右布局容器 */
.result-container {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}
/* 左侧图片区域 */
.result-image-box {
    flex-shrink: 0;
    width: 280px;
    text-align: center;
}
.result-image-box img {
    max-width: 100%;
    max-height: 280px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
/* 图片占位符 */
.image-placeholder {
    width: 280px;
    height: 280px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border: 2px dashed #d9d9d9;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
}
.image-placeholder i {
    font-size: 48px;
    margin-bottom: 10px;
    color: #ccc;
}
.image-placeholder span {
    font-size: 14px;
}
/* 右侧信息区域 */
.result-info-box {
    flex: 1;
    min-width: 0;
}
.result-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ddd;
    color: #333;
}
.result-item {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}
.result-item:last-child {
    border-bottom: none;
}
.result-label {
    width: 120px;
    color: #666;
    font-size: 14px;
    font-weight: 500;
}
.result-value {
    flex: 1;
    color: #333;
    font-size: 14px;
}
/* 首次查询提示 - 绿色背景+绿色对钩 */
.query-first-tip {
    margin-top: 15px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 1px solid #6ee7b7;
    border-radius: 8px;
    font-size: 14px;
    color: #065f46;
    display: flex;
    align-items: center;
    gap: 10px;
}
.query-first-tip .icon {
    width: 24px;
    height: 24px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    flex-shrink: 0;
}
.query-first-tip strong {
    color: #059669;
}
/* 多次查询提示 - 橙色背景+黄色三角感叹号 */
.query-count-tip {
    margin-top: 15px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 1px solid #fdba74;
    border-radius: 8px;
    font-size: 14px;
    color: #9a3412;
    display: flex;
    align-items: center;
    gap: 10px;
}
.query-count-tip .icon {
    width: 24px;
    height: 24px;
    background: #f59e0b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    flex-shrink: 0;
}
.query-count-tip strong {
    color: #ea580c;
}
/* 无效防伪码提示 - 灰色背景+橙色警告 */
.query-invalid-tip {
    margin-top: 15px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    font-size: 14px;
    color: #595959;
    display: flex;
    align-items: center;
    gap: 10px;
}
.query-invalid-tip .icon {
    width: 24px;
    height: 24px;
    background: #fa8c16;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    flex-shrink: 0;
}
.query-invalid-tip strong {
    color: #fa8c16;
}
.loading {
    display: none;
    text-align: center;
    padding: 20px;
}
.loading-spinner {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4A90E2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.intro-section {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 20px;
}
.intro-section h2 {
    font-size: 24px;
    color: #333;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #4A90E2;
}
.intro-section p {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin: 0;
}
