
        <!DOCTYPE html>
        <html lang="zh-CN">
        <head>
            <meta charset="UTF-8">
            <meta name="viewport" content="width=device-width, initial-scale=1.0">
            <title>会订货商品搜索系统</title>
            <style>
                body {
                    font-family: "Microsoft YaHei", Arial, sans-serif;
                    margin: 0;
                    padding: 20px;
                    background-color: #f5f5f5;
                }
                .container {
                    max-width: 1200px;
                    margin: 0 auto;
                    background: white;
                    padding: 20px;
                    border-radius: 8px;
                    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
                }
                h1 {
                    color: #333;
                    text-align: center;
                    margin-bottom: 30px;
                }
                .search-form {
                    background: #f8f9fa;
                    padding: 20px;
                    border-radius: 8px;
                    margin-bottom: 30px;
                }
                .form-group {
                    margin-bottom: 15px;
                }
                label {
                    display: block;
                    margin-bottom: 5px;
                    font-weight: bold;
                    color: #555;
                }
                input[type="text"] {
                    width: 100%;
                    padding: 10px;
                    border: 1px solid #ddd;
                    border-radius: 4px;
                    font-size: 14px;
                    box-sizing: border-box;
                }
                button {
                    background: #007bff;
                    color: white;
                    padding: 12px 30px;
                    border: none;
                    border-radius: 4px;
                    cursor: pointer;
                    font-size: 16px;
                    margin-right: 10px;
                }
                button:hover {
                    background: #0056b3;
                }
                .results {
                    margin-top: 20px;
                }
                .item-card {
                    border: 1px solid #ddd;
                    border-radius: 8px;
                    padding: 15px;
                    margin-bottom: 15px;
                    background: white;
                }
                .item-header {
                    display: flex;
                    justify-content: space-between;
                    align-items: flex-start;
                    margin-bottom: 10px;
                }
                .item-name {
                    font-size: 18px;
                    font-weight: bold;
                    color: #333;
                    margin-bottom: 5px;
                }
                .item-brand {
                    color: #666;
                    font-size: 14px;
                }
                .item-status {
                    background: #28a745;
                    color: white;
                    padding: 4px 8px;
                    border-radius: 4px;
                    font-size: 12px;
                }
                .item-status.offline {
                    background: #dc3545;
                }
                .item-images {
                    display: flex;
                    gap: 10px;
                    margin: 10px 0;
                    flex-wrap: wrap;
                }
                .item-image {
                    width: 100px;
                    height: 100px;
                    object-fit: cover;
                    border-radius: 4px;
                    border: 1px solid #ddd;
                }
                .sku-section {
                    margin-top: 15px;
                    padding: 10px;
                    background: #f8f9fa;
                    border-radius: 4px;
                }
                .sku-item {
                    margin-bottom: 10px;
                    padding: 10px;
                    border-left: 3px solid #007bff;
                    background: white;
                }
                .error {
                    color: #dc3545;
                    background: #f8d7da;
                    padding: 10px;
                    border-radius: 4px;
                    margin: 10px 0;
                }
                .success {
                    color: #155724;
                    background: #d4edda;
                    padding: 10px;
                    border-radius: 4px;
                    margin: 10px 0;
                }
                .tab-buttons {
                    display: flex;
                    margin-bottom: 20px;
                    border-bottom: 1px solid #ddd;
                }
                .tab-button {
                    padding: 10px 20px;
                    background: none;
                    border: none;
                    cursor: pointer;
                    border-bottom: 3px solid transparent;
                    color: #666;
                }
                .tab-button.active {
                    border-bottom-color: #007bff;
                    color: #007bff;
                    font-weight: bold;
                }
                .tab-content {
                    display: none;
                }
                .tab-content.active {
                    display: block;
                }
                .search-type {
                    display: flex;
                    gap: 10px;
                    margin-bottom: 15px;
                }
                .search-type label {
                    display: flex;
                    align-items: center;
                    margin-bottom: 0;
                    cursor: pointer;
                }
                .search-type input {
                    margin-right: 5px;
                }
            </style>
        </head>
        <body>
            <div class="container">
                <h1>会订货商品搜索系统</h1>
                
                <div class="search-form">
                    <form method="POST" action="">
                        <div class="search-type">
                            <label><input type="radio" name="search_type" value="name" checked> 商品名称</label>
                            <label><input type="radio" name="search_type" value="code"> 商品编号</label>
                            <label><input type="radio" name="search_type" value="brand"> 商品品牌</label>
                            <label><input type="radio" name="search_type" value="id"> 商品ID</label>
                        </div>
                        
                        <div class="form-group">
                            <label for="search_keyword">搜索关键词:</label>
                            <input type="text" id="search_keyword" name="search_keyword" 
                                   placeholder="请输入商品名称、编号、品牌或ID..." 
                                   value="">
                        </div>
                        
                        <button type="submit" name="search">搜索商品</button>
                        <button type="submit" name="show_all">显示所有商品</button>
                    </form>
                </div>
            </div>
        </body>
        </html>