* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", sans-serif;
}

body {
    background-color: #f5f5f5;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.search-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 30px 0 40px;
}

.search-area img {
    width: 180px;
    height: auto;
    margin-bottom: 20px;
}

.search-box {
    display: flex;
    width: 100%;
    max-width: 700px;
    height: 48px;
    border: 2px solid #4e7cf3;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.search-box:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.search-box input {
    flex: 1;
    padding: 0 18px;
    border: none;
    outline: none;
    font-size: 16px;
    background-color: white;
}

.search-box button {
    width: 100px;
    border: none;
    background-color: #4e7cf3;
    color: white;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.search-box button:hover {
    background-color: #3a67e0;
}

.nav-container {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
}

.nav-item {
    width: 100px;
    text-align: center;
    /*background-color: #fff;*/
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.nav-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.nav-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 8px;
    object-fit: contain;
    border-radius: 8px;
}

.nav-item a {
    display: block;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.add-btn {
    width: 100px;
    text-align: center;
    /*background-color: #fff;*/
    border: 1px dashed #ddd;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #999;
}

.add-btn:hover {
    border-color: #4e7cf3;
    color: #4e7cf3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.add-btn img {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
    opacity: 0.6;
}

.add-btn:hover img {
    opacity: 0.8;
}

.add-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.add-modal-content {
    width: 300px;
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    position: relative;
}

.add-modal-content h3 {
    margin-bottom: 15px;
    text-align: center;
    color: #333;
}

.add-modal-content input {
    width: 100%;
    height: 40px;
    margin: 8px 0;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.add-modal-content input:focus {
    border-color: #4e7cf3;
}

.add-modal-content button {
    width: 100%;
    height: 40px;
    border: none;
    background-color: #4e7cf3;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 12px;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.add-modal-content button:hover {
    background-color: #3a67e0;
}

.add-modal-content .cancel-btn {
    background-color: #f5f5f5;
    color: #666;
    margin-top: 8px;
}

.add-modal-content .cancel-btn:hover {
    background-color: #eaeaea;
}

.icon-preview {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.icon-preview img {
    width: 32px;
    height: 32px;
    margin-right: 10px;
    border-radius: 4px;
    display: none;
}

.icon-preview span {
    color: #999;
    font-size: 12px;
}

@media (max-width: 600px) {
    .search-area img {
        width: 140px;
    }
    
    .search-box {
        height: 44px;
    }
    
    .search-box input {
        font-size: 14px;
    }
    
    .search-box button {
        width: 80px;
        font-size: 14px;
    }
    
    .nav-list {
        justify-content: center;
    }
    
    
    
            .success-message {
            position: fixed;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            background-color: #4CAF50;
            color: white;
            padding: 10px 20px;
            border-radius: 4px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.2);
            z-index: 100;
        }
}