* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #ff6b6b 100%);
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

/* 主要布局容器 */
.main-container {
    display: flex;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    height: calc(100vh - 40px);
}

/* 左侧结果区域 */
.left-panel {
    flex: 1;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* 右侧查询工具区域 */
.right-panel {
    flex: 0 0 400px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    overflow-y: auto;
}

.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    font-family: 'Noto Sans SC', sans-serif;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
}

/* 热门事件提醒 */
.hot-news {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #ff6b6b;
}

.hot-news h3 {
    color: #ff6b6b;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

/* 查询工具列表 */
.tools-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tool-card {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    border: 1px solid #e1e5e9;
    position: relative;
    overflow: visible;
}

.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.tool-card.popular {
    border-color: #ff6b6b;
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
}

.tool-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.tool-icon {
    font-size: 1.5rem;
    color: #667eea;
    width: 24px;
    text-align: center;
}

.tool-info h3 {
    color: #333;
    margin-bottom: 0.2rem;
    font-size: 1rem;
    font-weight: 600;
}

.tool-stats {
    font-size: 0.8rem;
    color: #666;
    font-weight: 400;
}

.popular-badge {
    background: #ff6b6b;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: auto;
}

.search-box {
    margin: 0.8rem 0 0 0;
    position: relative;
    z-index: 1;
}

.search-input {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-family: 'Noto Sans SC', sans-serif;
    background-color: white;
    color: #333;
    cursor: text;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    pointer-events: auto;
    z-index: 1;
    position: relative;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-input:hover {
    border-color: #667eea;
}

.search-input::placeholder {
    color: #999;
    opacity: 1;
}

/* 输入框错误状态动画 */
.search-input.error {
    border-color: #dc3545;
    background-color: #fff5f5;
    animation: shake 0.5s ease-in-out;
}

.search-input.error:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* 抖动动画 */
@keyframes shake {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(0);
    }
    10% {
        transform: translateX(-5px);
    }
    30% {
        transform: translateX(5px);
    }
    60% {
        transform: translateX(-3px);
    }
    90% {
        transform: translateX(3px);
    }
}

/* 输入框恢复正常状态的动画 */
.search-input.normal {
    border-color: #e1e5e9;
    background-color: white;
    animation: normalizeInput 0.3s ease-in-out;
}

@keyframes normalizeInput {
    from {
        border-color: #dc3545;
        background-color: #fff5f5;
    }
    to {
        border-color: #e1e5e9;
        background-color: white;
    }
}

.search-btn {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.6rem;
    font-size: 0.9rem;
}

/* 左侧结果展示区域 - 优化布局 */
.result-header {
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #e1e5e9;
    flex-shrink: 0;
}

.result-title {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.result-subtitle {
    color: #666;
    font-size: 0.85rem;
    font-weight: 400;
}

.result-content {
    flex: 1;
    overflow-y: auto;
}

.welcome-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 300px;
    color: #666;
    text-align: center;
}

.welcome-message i {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.welcome-message p {
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.8;
}

.result-item {
    background: white;
    border-radius: 8px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid #28a745;
    transition: all 0.3s ease;
}

.result-item.safe {
    border-color: #28a745;
    background: linear-gradient(135deg, #f8fff9 0%, #ffffff 100%);
}

.result-item.warning {
    border-color: #ffc107;
    background: linear-gradient(135deg, #fffbf0 0%, #ffffff 100%);
}

.result-item.danger {
    border-color: #dc3545;
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
}

.result-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #e1e5e9;
}

.result-item-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
}

.result-details p {
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.result-details strong {
    font-weight: 700;
    color: #222;
}

/* 关键信息高亮 */
.result-details .product-name {
    font-weight: 700;
    color: #333;
    font-size: 1rem;
}

.result-details .cert-info {
    font-weight: 600;
}

.result-details .status-text {
    font-weight: 700;
}

.result-details .tips-text {
    font-weight: 600;
    color: #555;
}

/* 安全状态特殊样式 */
.result-item.safe .status-text {
    color: #28a745;
}

.result-item.warning .status-text {
    color: #ffc107;
}

.result-item.danger .status-text {
    color: #dc3545;
}

.status-badge {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-safe { 
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.status-warning { 
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.status-danger { 
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

/* 删除结果按钮样式 */
.remove-result-btn {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.7rem;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.remove-result-btn:hover {
    opacity: 1;
    background: #c82333;
    transform: scale(1.1);
}

.remove-result-btn i {
    font-size: 0.6rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .main-container {
        flex-direction: column;
        height: auto;
    }
    
    .right-panel {
        flex: none;
        order: -1;
    }

    .result-title {
        font-size: 1.1rem;
    }

    .welcome-message {
        min-height: 200px;
    }

    .welcome-message i {
        font-size: 2rem;
    }
} 